SwiftFlutterMaterial constructor
const
SwiftFlutterMaterial({
- Key? key,
- required String initialRoute,
- String? homeRoute,
- Map<
String, WidgetBuilder> ? routes, - Map<
String, Widget Function(BuildContext, Map< ? routesWithPayload,String, dynamic> )> - NotificationRouteCallback? onNotificationLaunch,
- VoidCallback? onBackFromNotification,
- String? title,
- ThemeData? theme,
- ThemeData? darkTheme,
- ThemeMode? themeMode,
- bool? debugShowCheckedModeBanner,
- Widget builder()?,
Implementation
const SwiftFlutterMaterial({
super.key,
required this.initialRoute,
this.homeRoute,
this.routes,
this.routesWithPayload,
this.onNotificationLaunch,
this.onBackFromNotification,
this.title,
this.theme,
this.darkTheme,
this.themeMode,
this.debugShowCheckedModeBanner,
this.builder,
}) : assert(
routes != null || routesWithPayload != null,
'Either routes or routesWithPayload must be provided',
);