flutter
flutter copied to clipboard
Update field.dart to fix bug when the field type is inferred and not explicitly set
final scaffoldKey = GlobalKey<ScaffoldState>(); The above example code gave a _type not initialised exception because the type is an inferred type. By making _type into String? _type, the problem is solved.