Flutter error
Unable to instantiate activity
# build.gradle android { ... compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } }
Could not read script '/Users/[User]/sdk/flutter/packages/flutter_tools/gradle/app_plugin_loader.gradle'
$ rm android/settings.gradle $ flutter create .
The method 'map' was called on null
- snippet.dart
istProvices?.map((Provinces value) { return new DropdownMenuItem<Provinces>( value: value, child: new Text(value.name, style: new TextStyle(fontSize: 16.0),), ); })?.toList() ?? [],