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
Add type: HandlerType.function to the example code in README.
FluroRouter.appRouter.navigateTo(
context,
'home',
routeSettings: RouteSettings(
arguments: MyArgumentsDataClass('foo!'),
),
);
var homeHandler = Handler(
type: HandlerType.function, // set function as the type.
handlerFunc: (context, params) {
final args = context.settings.arguments as MyArgumentsDataClass; // args will be null.
return HomeComponent(args);
},
);
expected: args is MyArgumentsDataClass('foo!')
The text was updated successfully, but these errors were encountered:
Add
type: HandlerType.function
to the example code in README.expected: args is
MyArgumentsDataClass('foo!')
The text was updated successfully, but these errors were encountered: