SwiftFlutterMaterial constructor

const SwiftFlutterMaterial({
  1. Key? key,
  2. MaterialApp? materialApp,
  3. GetMaterialApp? getMaterialApp,
  4. NotificationRouteCallback? onNotificationLaunch,
  5. 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',
      );