copyWith method
- @useResult
- FWidgetStateMap<
TextStyle> ? labelTextStyle, - EdgeInsetsGeometry? labelPadding,
- FWidgetStateMap<
Color> ? dividerColor, - double? dividerWidth,
- FItemStyle itemStyle(
- FItemStyle style
Returns a copy of this FSelectSectionStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FSelectSectionStyle.labelTextStyle - The enabled label's text style.
- FSelectSectionStyle.labelPadding - The padding around the label.
- FSelectSectionStyle.dividerColor - The divider's style.
- FSelectSectionStyle.dividerWidth - The divider's width.
- FSelectSectionStyle.itemStyle - The section's items' style.
Implementation
@useResult
FSelectSectionStyle copyWith({
FWidgetStateMap<TextStyle>? labelTextStyle,
EdgeInsetsGeometry? labelPadding,
FWidgetStateMap<Color>? dividerColor,
double? dividerWidth,
FItemStyle Function(FItemStyle style)? itemStyle,
}) => FSelectSectionStyle(
labelTextStyle: labelTextStyle ?? this.labelTextStyle,
labelPadding: labelPadding ?? this.labelPadding,
dividerColor: dividerColor ?? this.dividerColor,
dividerWidth: dividerWidth ?? this.dividerWidth,
itemStyle: itemStyle != null ? itemStyle(this.itemStyle) : this.itemStyle,
);