copyWith method

SplashConfig copyWith({
  1. int? durationMs,
  2. SplashAnimation? animation,
  3. Color? backgroundColor,
  4. LinearGradient? backgroundGradient,
  5. String? appName,
  6. String? tagline,
  7. TextStyle? appNameStyle,
  8. TextStyle? taglineStyle,
  9. SplashLayoutType? layoutType,
  10. Widget? customContent,
  11. SplashTheme? theme,
  12. bool? showLoader,
  13. Widget? customLoader,
  14. bool? tapToContinue,
  15. bool? showSkipButton,
  16. String? skipButtonLabel,
  17. bool? enablePerformanceMonitoring,
})

Returns a copy of this config with specified fields overridden.

Implementation

SplashConfig copyWith({
  int? durationMs,
  SplashAnimation? animation,
  Color? backgroundColor,
  LinearGradient? backgroundGradient,
  Widget? logo,
  String? appName,
  String? tagline,
  TextStyle? appNameStyle,
  TextStyle? taglineStyle,
  SplashLayoutType? layoutType,
  Widget? customContent,
  SplashTheme? theme,
  bool? showLoader,
  Widget? customLoader,
  bool? tapToContinue,
  bool? showSkipButton,
  String? skipButtonLabel,
  bool? enablePerformanceMonitoring,
}) =>
    SplashConfig(
      durationMs: durationMs ?? this.durationMs,
      animation: animation ?? this.animation,
      backgroundColor: backgroundColor ?? this.backgroundColor,
      backgroundGradient: backgroundGradient ?? this.backgroundGradient,
      logo: logo ?? this.logo,
      appName: appName ?? this.appName,
      tagline: tagline ?? this.tagline,
      appNameStyle: appNameStyle ?? this.appNameStyle,
      taglineStyle: taglineStyle ?? this.taglineStyle,
      layoutType: layoutType ?? this.layoutType,
      customContent: customContent ?? this.customContent,
      theme: theme ?? this.theme,
      showLoader: showLoader ?? this.showLoader,
      customLoader: customLoader ?? this.customLoader,
      tapToContinue: tapToContinue ?? this.tapToContinue,
      showSkipButton: showSkipButton ?? this.showSkipButton,
      skipButtonLabel: skipButtonLabel ?? this.skipButtonLabel,
      enablePerformanceMonitoring:
          enablePerformanceMonitoring ?? this.enablePerformanceMonitoring,
    );