copyWith method
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,
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,
);