copyWith method

  1. @useResult
FMultiSelectStyle copyWith({
  1. FMultiSelectFieldStyle fieldStyle(
    1. FMultiSelectFieldStyle style
    )?,
  2. FMultiSelectTagStyle tagStyle(
    1. FMultiSelectTagStyle style
    )?,
  3. FPopoverStyle popoverStyle(
    1. FPopoverStyle style
    )?,
  4. FSelectSearchStyle searchStyle(
    1. FSelectSearchStyle style
    )?,
  5. FSelectContentStyle contentStyle(
    1. FSelectContentStyle style
    )?,
  6. 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,
  FPopoverStyle Function(FPopoverStyle style)? popoverStyle,
  FSelectSearchStyle Function(FSelectSearchStyle style)? searchStyle,
  FSelectContentStyle Function(FSelectContentStyle style)? contentStyle,
  TextStyle? emptyTextStyle,
}) => FMultiSelectStyle(
  fieldStyle: fieldStyle != null ? fieldStyle(this.fieldStyle) : this.fieldStyle,
  tagStyle: tagStyle != null ? tagStyle(this.tagStyle) : this.tagStyle,
  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,
);