copyWith method

  1. @override
BetterRoutePromptTheme copyWith({
  1. Color? acceptButtonIconColor,
  2. Color? acceptButtonIconColorBackground,
  3. Color? acceptButtonColor,
  4. TextStyle? acceptButtonTextStyle,
  5. Color? denyButtonColor,
  6. TextStyle? denyButtonTextStyle,
  7. Color? progressBarColor,
})
override

Implementation

@override
BetterRoutePromptTheme copyWith({
  Color? acceptButtonIconColor,
  Color? acceptButtonIconColorBackground,
  Color? acceptButtonColor,
  TextStyle? acceptButtonTextStyle,
  Color? denyButtonColor,
  TextStyle? denyButtonTextStyle,
  Color? progressBarColor,
}) {
  return BetterRoutePromptTheme(
    acceptButtonIconColor: acceptButtonIconColor ?? this.acceptButtonColor,
    acceptButtonIconColorBackground: acceptButtonIconColorBackground ??
        this.acceptButtonIconColorBackground,
    acceptButtonColor: acceptButtonColor ?? this.acceptButtonColor,
    acceptButtonTextStyle:
        acceptButtonTextStyle ?? this.acceptButtonTextStyle,
    denyButtonColor: denyButtonColor ?? this.denyButtonColor,
    denyButtonTextStyle: denyButtonTextStyle ?? this.denyButtonTextStyle,
    progressBarColor: progressBarColor ?? this.progressBarColor,
  );
}