SwiftFlutterMaterial constructor
const
SwiftFlutterMaterial({
- Key? key,
- MaterialApp? materialApp,
- GetMaterialApp? getMaterialApp,
- NotificationRouteCallback? onNotificationLaunch,
- DeepLinkCallback? onDeepLink,
Implementation
const SwiftFlutterMaterial({
super.key,
this.materialApp,
this.getMaterialApp,
this.onNotificationLaunch,
this.onDeepLink,
}) : assert(
materialApp != null || getMaterialApp != null,
'Either materialApp or getMaterialApp must be provided',
),
assert(
materialApp == null || getMaterialApp == null,
'Cannot provide both materialApp and getMaterialApp',
);