copyWith method

  1. @useResult
FTooltipStyle copyWith({
  1. BoxDecoration? decoration,
  2. ImageFilter? backgroundFilter,
  3. EdgeInsets? padding,
  4. 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,
);