copyWith method

  1. @useResult
FSelectMenuTileStyle copyWith({
  1. FPopoverMenuStyle menuStyle(
    1. FPopoverMenuStyle
    )?,
  2. FTileStyle tileStyle(
    1. FTileStyle
    )?,
  3. EdgeInsetsGeometry? labelPadding,
  4. EdgeInsetsGeometry? descriptionPadding,
  5. EdgeInsetsGeometry? errorPadding,
  6. EdgeInsetsGeometry? childPadding,
  7. FWidgetStateMap<TextStyle>? labelTextStyle,
  8. FWidgetStateMap<TextStyle>? descriptionTextStyle,
  9. TextStyle? errorTextStyle,
})

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

Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.

menuStyle

The menu's style.

tileStyle

The tile's style.

labelPadding

The label's padding.

descriptionPadding

The description's padding.

errorPadding

The error's padding.

childPadding

The child's padding.

labelTextStyle

The label's text style.

Supported states:

descriptionTextStyle

The description's text style.

Supported states:

errorTextStyle

The error's text style.

Implementation

@useResult
FSelectMenuTileStyle copyWith({
  FPopoverMenuStyle Function(FPopoverMenuStyle)? menuStyle,
  FTileStyle Function(FTileStyle)? tileStyle,
  EdgeInsetsGeometry? labelPadding,
  EdgeInsetsGeometry? descriptionPadding,
  EdgeInsetsGeometry? errorPadding,
  EdgeInsetsGeometry? childPadding,
  FWidgetStateMap<TextStyle>? labelTextStyle,
  FWidgetStateMap<TextStyle>? descriptionTextStyle,
  TextStyle? errorTextStyle,
}) => FSelectMenuTileStyle(
  menuStyle: menuStyle != null ? menuStyle(this.menuStyle) : this.menuStyle,
  tileStyle: tileStyle != null ? tileStyle(this.tileStyle) : this.tileStyle,
  labelPadding: labelPadding ?? this.labelPadding,
  descriptionPadding: descriptionPadding ?? this.descriptionPadding,
  errorPadding: errorPadding ?? this.errorPadding,
  childPadding: childPadding ?? this.childPadding,
  labelTextStyle: labelTextStyle ?? this.labelTextStyle,
  descriptionTextStyle: descriptionTextStyle ?? this.descriptionTextStyle,
  errorTextStyle: errorTextStyle ?? this.errorTextStyle,
);