copyWith method
- @useResult
- BoxDecoration? decoration,
- ImageFilter? backgroundFilter,
- EdgeInsets? padding,
- TextStyle? textStyle,
Returns a copy of this FTooltipStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FTooltipStyle.decoration - The box decoration.
- FTooltipStyle.backgroundFilter - An optional background filter applied to the tooltip.
- FTooltipStyle.padding - The padding surrounding the tooltip's text.
- FTooltipStyle.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,
);