copyWith method

  1. @useResult
FSelectGroupStyle copyWith({
  1. FCheckboxStyle checkboxStyle(
    1. FCheckboxStyle
    )?,
  2. FRadioStyle radioStyle(
    1. FRadioStyle
    )?,
  3. EdgeInsetsGeometry? itemPadding,
  4. EdgeInsetsGeometry? labelPadding,
  5. EdgeInsetsGeometry? descriptionPadding,
  6. EdgeInsetsGeometry? errorPadding,
  7. EdgeInsetsGeometry? childPadding,
  8. FWidgetStateMap<TextStyle>? labelTextStyle,
  9. FWidgetStateMap<TextStyle>? descriptionTextStyle,
  10. TextStyle? errorTextStyle,
})

Returns a copy of this FSelectGroupStyle with the given properties replaced.

Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.

checkboxStyle

The FCheckbox's style.

radioStyle

The FRadio's style.

itemPadding

The padding surrounding an item. Defaults to EdgeInsets.symmetric(vertical: 2).

labelPadding

The label's padding.

descriptionPadding

The description's padding.

errorPadding

The error's padding.

childPadding

The child's padding.

labelTextStyle

The label's text style.

Supported states:

descriptionTextStyle

The description's text style.

Supported states:

errorTextStyle

The error's text style.

Implementation

@useResult
FSelectGroupStyle copyWith({
  FCheckboxStyle Function(FCheckboxStyle)? checkboxStyle,
  FRadioStyle Function(FRadioStyle)? radioStyle,
  EdgeInsetsGeometry? itemPadding,
  EdgeInsetsGeometry? labelPadding,
  EdgeInsetsGeometry? descriptionPadding,
  EdgeInsetsGeometry? errorPadding,
  EdgeInsetsGeometry? childPadding,
  FWidgetStateMap<TextStyle>? labelTextStyle,
  FWidgetStateMap<TextStyle>? descriptionTextStyle,
  TextStyle? errorTextStyle,
}) => FSelectGroupStyle(
  checkboxStyle: checkboxStyle != null ? checkboxStyle(this.checkboxStyle) : this.checkboxStyle,
  radioStyle: radioStyle != null ? radioStyle(this.radioStyle) : this.radioStyle,
  itemPadding: itemPadding ?? this.itemPadding,
  labelPadding: labelPadding ?? this.labelPadding,
  descriptionPadding: descriptionPadding ?? this.descriptionPadding,
  errorPadding: errorPadding ?? this.errorPadding,
  childPadding: childPadding ?? this.childPadding,
  labelTextStyle: labelTextStyle ?? this.labelTextStyle,
  descriptionTextStyle: descriptionTextStyle ?? this.descriptionTextStyle,
  errorTextStyle: errorTextStyle ?? this.errorTextStyle,
);