createRoute method
Implementation
@override
Route<dynamic> createRoute(RouteSettings settings, RouteOptions options) {
return MaterialPageRoute(
settings: settings,
maintainState: maintainState ?? true,
fullscreenDialog: fullscreenDialog ?? false,
allowSnapshotting: allowSnapshotting ?? true,
barrierDismissible: barrierDismissible ?? false,
builder: (context) => options.builder(settings.arguments as Map<String, dynamic>?),
);
}