copyWith method
- @useResult
- BoxDecoration? decoration,
- FTileStyle tileStyle()?,
- FWidgetStateMap<
Color> ? dividerColor, - double? dividerWidth,
- EdgeInsetsGeometry? labelPadding,
- EdgeInsetsGeometry? descriptionPadding,
- EdgeInsetsGeometry? errorPadding,
- EdgeInsetsGeometry? childPadding,
- FWidgetStateMap<
TextStyle> ? labelTextStyle, - FWidgetStateMap<
TextStyle> ? descriptionTextStyle, - 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,
);