copyWith method

  1. @useResult
FTappableStyle copyWith({
  1. FWidgetStateMap<MouseCursor>? cursor,
  2. Duration? pressedEnterDuration,
  3. Duration? pressedExitDuration,
  4. Tween<double>? animationTween,
})
inherited

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

Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.

Implementation

@useResult
FTappableStyle copyWith({
  FWidgetStateMap<MouseCursor>? cursor,
  Duration? pressedEnterDuration,
  Duration? pressedExitDuration,
  Tween<double>? animationTween,
}) => FTappableStyle(
  cursor: cursor ?? this.cursor,
  pressedEnterDuration: pressedEnterDuration ?? this.pressedEnterDuration,
  pressedExitDuration: pressedExitDuration ?? this.pressedExitDuration,
  animationTween: animationTween ?? this.animationTween,
);