AppRouterDelegate constructor
AppRouterDelegate({
- required Map<
String, WidgetBuilder> routes, - void add(
- VoidCallback listener
- void remove(
- VoidCallback listener
Provide the Map of 'Routes' as well as ADD and Remove routines.
Implementation
factory AppRouterDelegate({
required Map<String, WidgetBuilder> routes,
void Function(VoidCallback listener)? add,
void Function(VoidCallback listener)? remove,
}) =>
_this ??= AppRouterDelegate._(
routes: routes,
add: add,
remove: remove,
);