copyWith method

  1. @useResult
FMultiSelectStyle copyWith({
  1. FMultiSelectFieldStyle fieldStyle(
    1. FMultiSelectFieldStyle style
    )?,
  2. FMultiSelectTagStyle tagStyle(
    1. FMultiSelectTagStyle style
    )?,
  3. FSelectSearchStyle searchStyle(
    1. FSelectSearchStyle style
    )?,
  4. FSelectContentStyle contentStyle(
    1. FSelectContentStyle style
    )?,
  5. TextStyle? emptyTextStyle,
})

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

Consider using the CLI to generate a style.

Parameters

Implementation

@useResult
FMultiSelectStyle copyWith({
  FMultiSelectFieldStyle Function(FMultiSelectFieldStyle style)? fieldStyle,
  FMultiSelectTagStyle Function(FMultiSelectTagStyle style)? tagStyle,
  FSelectSearchStyle Function(FSelectSearchStyle style)? searchStyle,
  FSelectContentStyle Function(FSelectContentStyle style)? contentStyle,
  TextStyle? emptyTextStyle,
}) => .new(
  fieldStyle: fieldStyle != null ? fieldStyle(this.fieldStyle) : this.fieldStyle,
  tagStyle: tagStyle != null ? tagStyle(this.tagStyle) : this.tagStyle,
  searchStyle: searchStyle != null ? searchStyle(this.searchStyle) : this.searchStyle,
  contentStyle: contentStyle != null ? contentStyle(this.contentStyle) : this.contentStyle,
  emptyTextStyle: emptyTextStyle ?? this.emptyTextStyle,
);