copyWith method

  1. @override
HMRadioTheme copyWith({
  1. HMRadioSize? size,
  2. Color? radioColor,
  3. Color? textColor,
  4. Color? separatorLineColor,
  5. double? separatorLineHeight,
  6. bool? isLeft,
  7. HMRadius? boxRadius,
  8. 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,
  );
}