Flutter’s second beta has Dart 2 enabled by default.
How to migration to dart 2?
══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following StoreProviderError was thrown building StoreConnector<dynamic, dynamic>(dirty):
Error: No StoreProvider found. To fix, please try:
- Using Dart 2 (required) by using the --preview-dart-2 flag
- Wrapping your MaterialApp with the StoreProvider, rather than an individual Route
- Providing full type information to your Store, StoreProvider and
StoreConnector<State, ViewModel>
Flutter’s second beta has Dart 2 enabled by default.
How to migration to dart 2?