copyWith method
- @useResult
- FTileStyle tileStyle(
- FTileStyle style
- EdgeInsetsGeometry? labelPadding,
- EdgeInsetsGeometry? descriptionPadding,
- EdgeInsetsGeometry? errorPadding,
- EdgeInsetsGeometry? childPadding,
- FWidgetStateMap<
TextStyle> ? labelTextStyle, - FWidgetStateMap<
TextStyle> ? descriptionTextStyle, - TextStyle? errorTextStyle,
Returns a copy of this FSelectMenuTileStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FSelectMenuTileStyle.menuStyle - The menu's style.
- FSelectMenuTileStyle.tileStyle - The tile's style.
- FSelectMenuTileStyle.labelPadding - The label's padding.
- FSelectMenuTileStyle.descriptionPadding - The description's padding.
- FSelectMenuTileStyle.errorPadding - The error's padding.
- FSelectMenuTileStyle.childPadding - The child's padding.
- FSelectMenuTileStyle.labelTextStyle - The label's text style.
- FSelectMenuTileStyle.descriptionTextStyle - The description's text style.
- FSelectMenuTileStyle.errorTextStyle - The error's text style.
Implementation
@useResult
FSelectMenuTileStyle copyWith({
FPopoverMenuStyle Function(FPopoverMenuStyle style)? menuStyle,
FTileStyle Function(FTileStyle style)? 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,
);