register static method
void
register(
- String path,
- dynamic callback(
- BuildContext context,
- dynamic data
- dynamic onDone()?,
- OdinNavigatorRouteType? type,
- Color? backgroundColor,
- bool forceFullPage = false,
Implementation
static void register(
String path,
dynamic Function(BuildContext context, dynamic data) callback, {
Function()? onDone,
OdinNavigatorRouteType? type,
Color? backgroundColor,
bool forceFullPage = false,
}) {
_routes[path] = {
'callback': callback,
'on_done': onDone,
'type': type ?? OdinNavigatorRouteType.page,
'background_color': backgroundColor ?? Colors.white,
'force_full_page': forceFullPage,
};
}