copyWith method
- @useResult
- FWidgetStateMap<
TextStyle> ? labelTextStyle, - EdgeInsetsGeometry? labelPadding,
- FWidgetStateMap<
Color> ? dividerColor, - double? dividerWidth,
- FItemStyle itemStyle()?,
Returns a copy of this FAutocompleteSectionStyle with the given properties replaced.
Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.
labelTextStyle
The enabled label's text style.
Supported states:
labelPadding
The padding around the label. Defaults to EdgeInsetsDirectional.only(start: 15, top: 7.5, bottom: 7.5, end: 10)
.
dividerColor
The divider's style.
Supported states:
dividerWidth
The divider's width.
itemStyle
The section's items' style.
Implementation
@useResult
FAutocompleteSectionStyle copyWith({
FWidgetStateMap<TextStyle>? labelTextStyle,
EdgeInsetsGeometry? labelPadding,
FWidgetStateMap<Color>? dividerColor,
double? dividerWidth,
FItemStyle Function(FItemStyle)? itemStyle,
}) => FAutocompleteSectionStyle(
labelTextStyle: labelTextStyle ?? this.labelTextStyle,
labelPadding: labelPadding ?? this.labelPadding,
dividerColor: dividerColor ?? this.dividerColor,
dividerWidth: dividerWidth ?? this.dividerWidth,
itemStyle: itemStyle != null ? itemStyle(this.itemStyle) : this.itemStyle,
);