copyWith method

LaunchOptions copyWith({
  1. bool? useMultiChoiceDialog,
  2. String? dialogTitle,
  3. String? dialogMessage,
  4. String? androidPreferredAppPackageName,
  5. List<String>? iOSAppSchemes,
  6. void onLaunchAttempt(
    1. LaunchType type,
    2. Uri uri
    )?,
  7. void onLaunchResult(
    1. LaunchType type,
    2. Uri uri,
    3. bool success
    )?,
  8. String? appNotInstalledDialogTitle,
  9. String? appNotInstalledDialogMessage,
  10. String? confirmationDialogTitle,
  11. String? confirmationDialogMessage,
  12. LaunchFallbackMode? fallbackMode,
  13. bool? requireConfirmation,
  14. bool? checkAppInstallation,
  15. bool? bypassAppDetectionAndFallback,
  16. String? appStoreLink,
  17. void onTrackLaunch(
    1. LaunchType type,
    2. 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,
  );
}