copyWith method

  1. @useResult
FSelectSectionStyle copyWith({
  1. FWidgetStateMap<TextStyle>? labelTextStyle,
  2. EdgeInsetsGeometry? labelPadding,
  3. FWidgetStateMap<Color>? dividerColor,
  4. double? dividerWidth,
  5. FItemStyle itemStyle(
    1. FItemStyle style
    )?,
})

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

Consider using the CLI to generate a style.

Parameters

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,
);