copyWith method
- @useResult
- FCheckboxStyle checkboxStyle(
- FCheckboxStyle style
- FRadioStyle radioStyle(
- FRadioStyle style
- EdgeInsetsGeometry? itemPadding,
- EdgeInsetsGeometry? labelPadding,
- EdgeInsetsGeometry? descriptionPadding,
- EdgeInsetsGeometry? errorPadding,
- EdgeInsetsGeometry? childPadding,
- FWidgetStateMap<
TextStyle> ? labelTextStyle, - FWidgetStateMap<
TextStyle> ? descriptionTextStyle, - TextStyle? errorTextStyle,
Returns a copy of this FSelectGroupStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FSelectGroupStyle.checkboxStyle - The FCheckbox's style.
- FSelectGroupStyle.radioStyle - The FRadio's style.
- FSelectGroupStyle.itemPadding - The padding surrounding an item.
- FSelectGroupStyle.labelPadding - The label's padding.
- FSelectGroupStyle.descriptionPadding - The description's padding.
- FSelectGroupStyle.errorPadding - The error's padding.
- FSelectGroupStyle.childPadding - The child's padding.
- FSelectGroupStyle.labelTextStyle - The label's text style.
- FSelectGroupStyle.descriptionTextStyle - The description's text style.
- FSelectGroupStyle.errorTextStyle - The error's text style.
Implementation
@useResult
FSelectGroupStyle copyWith({
FCheckboxStyle Function(FCheckboxStyle style)? checkboxStyle,
FRadioStyle Function(FRadioStyle style)? 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,
);