copyWith method
VyuhThemeExtension
copyWith({
- Color? appLoaderBackground,
- Color? loaderColor,
- Color? routeLoaderBackground,
- Color? placeholderBackground,
- Color? placeholderForeground,
- Color? failureBackground,
- Color? failureForeground,
- Color? debugBackground,
- Color? debugForeground,
- Color? debugBorder,
- double? radius,
- Duration? loaderDelay,
- bool? showPoweredBy,
- TextStyle? failureTitleStyle,
- TextStyle? failureMessageStyle,
- Map<
FailureKind, IconData> ? failureIcons, - double? failureIconSize,
- double? failureMaxWidth,
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
VyuhThemeExtension copyWith({
Color? appLoaderBackground,
Color? loaderColor,
Color? routeLoaderBackground,
Color? placeholderBackground,
Color? placeholderForeground,
Color? failureBackground,
Color? failureForeground,
Color? debugBackground,
Color? debugForeground,
Color? debugBorder,
double? radius,
Duration? loaderDelay,
bool? showPoweredBy,
TextStyle? failureTitleStyle,
TextStyle? failureMessageStyle,
Map<FailureKind, IconData>? failureIcons,
double? failureIconSize,
double? failureMaxWidth,
}) => VyuhThemeExtension(
appLoaderBackground: appLoaderBackground ?? this.appLoaderBackground,
loaderColor: loaderColor ?? this.loaderColor,
routeLoaderBackground: routeLoaderBackground ?? this.routeLoaderBackground,
placeholderBackground: placeholderBackground ?? this.placeholderBackground,
placeholderForeground: placeholderForeground ?? this.placeholderForeground,
failureBackground: failureBackground ?? this.failureBackground,
failureForeground: failureForeground ?? this.failureForeground,
debugBackground: debugBackground ?? this.debugBackground,
debugForeground: debugForeground ?? this.debugForeground,
debugBorder: debugBorder ?? this.debugBorder,
radius: radius ?? this.radius,
loaderDelay: loaderDelay ?? this.loaderDelay,
showPoweredBy: showPoweredBy ?? this.showPoweredBy,
failureTitleStyle: failureTitleStyle ?? this.failureTitleStyle,
failureMessageStyle: failureMessageStyle ?? this.failureMessageStyle,
failureIcons: failureIcons ?? this.failureIcons,
failureIconSize: failureIconSize ?? this.failureIconSize,
failureMaxWidth: failureMaxWidth ?? this.failureMaxWidth,
);