copyWith method
AIOptionsStyle
copyWith({
- Color? backgroundColor,
- Border? border,
- BorderRadiusGeometry? borderRadius,
- TextStyle? titleTextStyle,
- Color? titleColor,
- Color? iconColor,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
AIOptionsStyle copyWith({
Color? backgroundColor,
Border? border,
BorderRadiusGeometry? borderRadius,
TextStyle? titleTextStyle,
Color? titleColor,
Color? iconColor,
}) {
return AIOptionsStyle(
backgroundColor: backgroundColor ?? this.backgroundColor,
border: border ?? this.border,
borderRadius: borderRadius ?? this.borderRadius,
titleTextStyle: titleTextStyle ?? this.titleTextStyle,
titleColor: titleColor ?? this.titleColor,
iconColor: iconColor ?? this.iconColor,
);
}