copyWith method

  1. @override
VyuhThemeExtension copyWith({
  1. Color? appLoaderBackground,
  2. Color? loaderColor,
  3. Color? routeLoaderBackground,
  4. Color? placeholderBackground,
  5. Color? placeholderForeground,
  6. Color? failureBackground,
  7. Color? failureForeground,
  8. Color? debugBackground,
  9. Color? debugForeground,
  10. Color? debugBorder,
  11. double? radius,
  12. Duration? loaderDelay,
  13. bool? showPoweredBy,
  14. TextStyle? failureTitleStyle,
  15. TextStyle? failureMessageStyle,
  16. Map<FailureKind, IconData>? failureIcons,
  17. double? failureIconSize,
  18. 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,
);