skip to Main Content

Flutter floor db cannot define return type

This is my model. class JoinedResults { final int? id; final int? question_id; final String? question_text; final String? question_type; final bool? is_mandatory; final int? correct_option_id; final int? option_id; final String? option_list_text; JoinedResults({ this.id, this.question_id, this.question_text, this.question_type, this.is_mandatory, this.correct_option_id, this.option_id, this.option_list_text,…

VIEW QUESTION

Flutter Build_Runner Build Failing While Generating Floor

build failed after flutter upgrade. $ flutter pub run build_runner build [INFO] Generating build script completed, took 331ms [WARNING] ../../.pub-cache/hosted/pub.dev/floor_generator-1.4.1/lib/misc/type_utils.dart:25:26: Error: The getter 'element' isn't defined for the class 'DartType'. - 'DartType' is from 'package:analyzer/dart/element/type.dart' ('../../.pub-cache/hosted/pub.dev/analyzer-5.0.0/lib/dart/element/type.dart'). Try correcting the name…

VIEW QUESTION
Back To Top
Search