copyWith method
HMRadioTheme
copyWith({
- HMRadioSize? size,
- Color? radioColor,
- Color? textColor,
- Color? separatorLineColor,
- double? separatorLineHeight,
- bool? isLeft,
- HMRadius? boxRadius,
- Border? border,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
HMRadioTheme copyWith({
HMRadioSize? size,
Color? radioColor,
Color? textColor,
Color? separatorLineColor,
double? separatorLineHeight,
bool? isLeft,
HMRadius? boxRadius,
Border? border,
}) {
return HMRadioTheme(
radioColor: radioColor ?? this.radioColor,
textColor: textColor ?? this.textColor,
separatorLineColor: separatorLineColor ?? this.separatorLineColor,
border: border ?? this.border,
boxRadius: boxRadius ?? this.boxRadius,
isLeft: isLeft ?? this.isLeft,
size: size ?? this.size,
separatorLineHeight: separatorLineHeight ?? this.separatorLineHeight,
);
}