copyWith method

SplashTheme copyWith({
  1. Color? backgroundColor,
  2. Color? loaderColor,
  3. Color? textColor,
  4. Color? retryButtonColor,
  5. Color? retryButtonTextColor,
})

Returns a copy of this theme with specified fields replaced.

Implementation

SplashTheme copyWith({
  Color? backgroundColor,
  Color? loaderColor,
  Color? textColor,
  Color? retryButtonColor,
  Color? retryButtonTextColor,
}) =>
    SplashTheme(
      backgroundColor: backgroundColor ?? this.backgroundColor,
      loaderColor: loaderColor ?? this.loaderColor,
      textColor: textColor ?? this.textColor,
      retryButtonColor: retryButtonColor ?? this.retryButtonColor,
      retryButtonTextColor:
          retryButtonTextColor ?? this.retryButtonTextColor,
    );