You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While attempting to implement using the Getting Started steps I realized that it would be great to add the newer code for the proper version of Null safety. Otherwise user will get the following error:
The argument type 'MeishiForm Function(BuildContext, Map<String, dynamic>)' can't be assigned to the parameter type 'Widget? Function(BuildContext?, Map<String, List<String>>)'.dart[argument_type_not_assignable](https://dart.dev/diagnostics/argument_type_not_assignable)
While attempting to implement using the Getting Started steps I realized that it would be great to add the newer code for the proper version of Null safety. Otherwise user will get the following error:
The argument type 'MeishiForm Function(BuildContext, Map<String, dynamic>)' can't be assigned to the parameter type 'Widget? Function(BuildContext?, Map<String, List<String>>)'.dart[argument_type_not_assignable](https://dart.dev/diagnostics/argument_type_not_assignable)
Change from:
var usersHandler = Handler(handlerFunc: (BuildContext context, Map<String, dynamic> params) { return UsersScreen(params["id"][0]); });
Change to:
var usersHandler = Handler(handlerFunc: (BuildContext? context, Map<String, dynamic> params) { return UsersScreen(params["id"][0]); });
Yeah simple fix. XD
The text was updated successfully, but these errors were encountered: