copyWith method

  1. @useResult
FTooltipStyle copyWith({
  1. BoxDecorationDelta? decoration,
  2. ImageFilter? backgroundFilter = imageFilterSentinel,
  3. EdgeInsets? padding,
  4. TextStyleDelta? textStyle,
})

Returns a copy of this FTooltipStyle with the given properties replaced.

See customizing widget styles.

Parameters

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,
);