copyWith method
- @useResult
- BoxDecorationDelta? decoration,
- ImageFilter? backgroundFilter = imageFilterSentinel,
- EdgeInsets? padding,
- TextStyleDelta? textStyle,
Returns a copy of this FTooltipStyle with the given properties replaced.
See customizing widget styles.
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({
BoxDecorationDelta? decoration,
ImageFilter? backgroundFilter = imageFilterSentinel,
EdgeInsets? padding,
TextStyleDelta? textStyle,
}) => .new(
decoration: decoration?.call(this.decoration) ?? this.decoration,
backgroundFilter: backgroundFilter == imageFilterSentinel ? this.backgroundFilter : backgroundFilter,
padding: padding ?? this.padding,
textStyle: textStyle?.call(this.textStyle) ?? this.textStyle,
);