copyWith method

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

See customizing widget styles.

Parameters

Implementation

@useResult
FSelectSectionStyle copyWith({
  FVariantsDelta<FSelectSectionVariantConstraint, FSelectSectionVariant, TextStyle, TextStyleDelta>? labelTextStyle,
  EdgeInsetsGeometry? labelPadding,
  FVariantsValueDelta<FSelectSectionVariantConstraint, FSelectSectionVariant, Color, Delta>? dividerColor,
  double? dividerWidth,
  FItemStyleDelta? itemStyle,
}) => .new(
  labelTextStyle: labelTextStyle?.call(this.labelTextStyle) ?? this.labelTextStyle,
  labelPadding: labelPadding ?? this.labelPadding,
  dividerColor: dividerColor?.call(this.dividerColor) ?? this.dividerColor,
  dividerWidth: dividerWidth ?? this.dividerWidth,
  itemStyle: itemStyle?.call(this.itemStyle) ?? this.itemStyle,
);