copyWith method

  1. @useResult
FTileGroupStyle copyWith({
  1. BoxDecoration? decoration,
  2. FTileStyle tileStyle(
    1. FTileStyle
    )?,
  3. FWidgetStateMap<Color>? dividerColor,
  4. double? dividerWidth,
  5. EdgeInsetsGeometry? labelPadding,
  6. EdgeInsetsGeometry? descriptionPadding,
  7. EdgeInsetsGeometry? errorPadding,
  8. EdgeInsetsGeometry? childPadding,
  9. FWidgetStateMap<TextStyle>? labelTextStyle,
  10. FWidgetStateMap<TextStyle>? descriptionTextStyle,
  11. TextStyle? errorTextStyle,
})

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

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

decoration

The group's decoration.

tileStyle

The tile's style.

dividerColor

The divider's style.

Supported states:

dividerWidth

The divider's width.

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
FTileGroupStyle copyWith({
  BoxDecoration? decoration,
  FTileStyle Function(FTileStyle)? tileStyle,
  FWidgetStateMap<Color>? dividerColor,
  double? dividerWidth,
  EdgeInsetsGeometry? labelPadding,
  EdgeInsetsGeometry? descriptionPadding,
  EdgeInsetsGeometry? errorPadding,
  EdgeInsetsGeometry? childPadding,
  FWidgetStateMap<TextStyle>? labelTextStyle,
  FWidgetStateMap<TextStyle>? descriptionTextStyle,
  TextStyle? errorTextStyle,
}) => FTileGroupStyle(
  decoration: decoration ?? this.decoration,
  tileStyle: tileStyle != null ? tileStyle(this.tileStyle) : this.tileStyle,
  dividerColor: dividerColor ?? this.dividerColor,
  dividerWidth: dividerWidth ?? this.dividerWidth,
  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,
);