copyWith method
- @useResult
- FTextFieldStyle selectFieldStyle(
- FTextFieldStyle style
- IconThemeData? iconStyle,
- FPopoverStyle popoverStyle(
- FPopoverStyle style
- FSelectSearchStyle searchStyle(
- FSelectSearchStyle style
- FSelectContentStyle contentStyle(
- FSelectContentStyle style
- TextStyle? emptyTextStyle,
Returns a copy of this FSelectStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FSelectStyle.selectFieldStyle - The select field's style.
- FSelectStyle.iconStyle - The select field's icon style.
- FSelectStyle.popoverStyle - The popover's style.
- FSelectStyle.searchStyle - The search's style.
- FSelectStyle.contentStyle - The content's style.
- FSelectStyle.emptyTextStyle - The default text style when there are no results.
Implementation
@useResult
FSelectStyle copyWith({
FTextFieldStyle Function(FTextFieldStyle style)? selectFieldStyle,
IconThemeData? iconStyle,
FPopoverStyle Function(FPopoverStyle style)? popoverStyle,
FSelectSearchStyle Function(FSelectSearchStyle style)? searchStyle,
FSelectContentStyle Function(FSelectContentStyle style)? contentStyle,
TextStyle? emptyTextStyle,
}) => FSelectStyle(
selectFieldStyle: selectFieldStyle != null ? selectFieldStyle(this.selectFieldStyle) : this.selectFieldStyle,
iconStyle: iconStyle ?? this.iconStyle,
popoverStyle: popoverStyle != null ? popoverStyle(this.popoverStyle) : this.popoverStyle,
searchStyle: searchStyle != null ? searchStyle(this.searchStyle) : this.searchStyle,
contentStyle: contentStyle != null ? contentStyle(this.contentStyle) : this.contentStyle,
emptyTextStyle: emptyTextStyle ?? this.emptyTextStyle,
);