copyWith method
- @useResult
- BoxDecoration? decoration,
- ImageFilter? backgroundFilter,
- EdgeInsets? padding,
- TextStyle? textStyle,
Returns a copy of this FTooltipStyle with the given properties replaced.
Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.
decoration
The box decoration.
backgroundFilter
An optional background filter applied to the tooltip.
This is typically combined with a translucent background in decoration
to create a glassmorphic effect.
padding
The padding surrounding the tooltip's text.
textStyle
The tooltip's default text style.
Implementation
@useResult
FTooltipStyle copyWith({
BoxDecoration? decoration,
ImageFilter? backgroundFilter,
EdgeInsets? padding,
TextStyle? textStyle,
}) => FTooltipStyle(
decoration: decoration ?? this.decoration,
backgroundFilter: backgroundFilter ?? this.backgroundFilter,
padding: padding ?? this.padding,
textStyle: textStyle ?? this.textStyle,
);