copyWith method
LaunchOptions
copyWith({
- bool? useMultiChoiceDialog,
- String? dialogTitle,
- String? dialogMessage,
- String? androidPreferredAppPackageName,
- List<
String> ? iOSAppSchemes, - void onLaunchAttempt(
- LaunchType type,
- Uri uri
- void onLaunchResult(
- LaunchType type,
- Uri uri,
- bool success
- String? appNotInstalledDialogTitle,
- String? appNotInstalledDialogMessage,
- String? confirmationDialogTitle,
- String? confirmationDialogMessage,
- LaunchFallbackMode? fallbackMode,
- bool? requireConfirmation,
- bool? checkAppInstallation,
- bool? bypassAppDetectionAndFallback,
- String? appStoreLink,
- void onTrackLaunch(
- LaunchType type,
- Uri uri
Implementation
LaunchOptions copyWith({
bool? useMultiChoiceDialog,
String? dialogTitle,
String? dialogMessage,
String? androidPreferredAppPackageName,
List<String>? iOSAppSchemes,
void Function(LaunchType type, Uri uri)? onLaunchAttempt,
void Function(LaunchType type, Uri uri, bool success)? onLaunchResult,
String? appNotInstalledDialogTitle,
String? appNotInstalledDialogMessage,
String? confirmationDialogTitle,
String? confirmationDialogMessage,
LaunchFallbackMode? fallbackMode,
bool? requireConfirmation,
bool? checkAppInstallation,
bool? bypassAppDetectionAndFallback,
String? appStoreLink,
void Function(LaunchType type, Uri uri)? onTrackLaunch,
}) {
return LaunchOptions(
useMultiChoiceDialog: useMultiChoiceDialog ?? this.useMultiChoiceDialog,
dialogTitle: dialogTitle ?? this.dialogTitle,
dialogMessage: dialogMessage ?? this.dialogMessage,
androidPreferredAppPackageName:
androidPreferredAppPackageName ?? this.androidPreferredAppPackageName,
iOSAppSchemes: iOSAppSchemes ?? this.iOSAppSchemes,
onLaunchAttempt: onLaunchAttempt ?? this.onLaunchAttempt,
onLaunchResult: onLaunchResult ?? this.onLaunchResult,
appNotInstalledDialogTitle:
appNotInstalledDialogTitle ?? this.appNotInstalledDialogTitle,
appNotInstalledDialogMessage:
appNotInstalledDialogMessage ?? this.appNotInstalledDialogMessage,
confirmationDialogTitle:
confirmationDialogTitle ?? this.confirmationDialogTitle,
confirmationDialogMessage:
confirmationDialogMessage ?? this.confirmationDialogMessage,
fallbackMode: fallbackMode ?? this.fallbackMode,
requireConfirmation: requireConfirmation ?? this.requireConfirmation,
checkAppInstallation: checkAppInstallation ?? this.checkAppInstallation,
bypassAppDetectionAndFallback:
bypassAppDetectionAndFallback ?? this.bypassAppDetectionAndFallback,
appStoreLink: appStoreLink ?? this.appStoreLink,
onTrackLaunch: onTrackLaunch ?? this.onTrackLaunch,
);
}