copyWith method
- @useResult
- FWidgetStateMap<
MouseCursor> ? cursor, - Duration? pressedEnterDuration,
- Duration? pressedExitDuration,
- 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,
);