copyWith method
- @useResult
- FVariantsDelta<
FSelectSectionVariantConstraint, FSelectSectionVariant, TextStyle, TextStyleDelta> ? labelTextStyle, - EdgeInsetsGeometry? labelPadding,
- FVariantsValueDelta<
FSelectSectionVariantConstraint, FSelectSectionVariant, Color, Delta> ? dividerColor, - double? dividerWidth,
- FItemStyleDelta? itemStyle,
Returns a copy of this FSelectSectionStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FSelectSectionStyle.labelTextStyle - The 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({
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,
);