copyWith method
BetterRoutePromptTheme
copyWith({
- Color? acceptButtonIconColor,
- Color? acceptButtonIconColorBackground,
- Color? acceptButtonColor,
- TextStyle? acceptButtonTextStyle,
- Color? denyButtonColor,
- TextStyle? denyButtonTextStyle,
- 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,
);
}