copyWith method

  1. @useResult
FTooltipStyle copyWith({
  1. DecorationDelta? decoration,
  2. ImageFilter? backgroundFilter = Sentinels.imageFilter,
  3. EdgeInsetsDelta? padding,
  4. TextStyleDelta? textStyle,
  5. Future<void> hapticFeedback()?,
  6. FTooltipMotionDelta? motion,
  7. Duration? hoverEnterDuration,
  8. Duration? hoverExitDuration,
  9. Duration? longPressExitDuration,
})

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

See customizing widget styles.

Parameters

Implementation

@useResult
FTooltipStyle copyWith({
  DecorationDelta? decoration,
  ImageFilter? backgroundFilter = Sentinels.imageFilter,
  EdgeInsetsDelta? padding,
  TextStyleDelta? textStyle,
  Future<void> Function()? hapticFeedback,
  FTooltipMotionDelta? motion,
  Duration? hoverEnterDuration,
  Duration? hoverExitDuration,
  Duration? longPressExitDuration,
}) => .new(
  decoration: decoration?.call(this.decoration) ?? this.decoration,
  backgroundFilter: backgroundFilter == Sentinels.imageFilter ? this.backgroundFilter : backgroundFilter,
  padding: padding?.call(this.padding) ?? this.padding,
  textStyle: textStyle?.call(this.textStyle) ?? this.textStyle,
  hapticFeedback: hapticFeedback ?? this.hapticFeedback,
  motion: motion?.call(this.motion) ?? this.motion,
  hoverEnterDuration: hoverEnterDuration ?? this.hoverEnterDuration,
  hoverExitDuration: hoverExitDuration ?? this.hoverExitDuration,
  longPressExitDuration: longPressExitDuration ?? this.longPressExitDuration,
);