copyWith method
- @useResult
- FWidgetStateMap<
MouseCursor> ? cursor, - Duration? pressedEnterDuration,
- Duration? pressedExitDuration,
- FTappableMotion motion(
- FTappableMotion motion
Returns a copy of this FTappableStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FTappableStyle.cursor - The mouse cursor for mouse pointers that are hovering over the region.
- FTappableStyle.pressedEnterDuration - The duration to wait before applying the pressed effect after the user presses the tile.
- FTappableStyle.pressedExitDuration - The duration to wait before removing the pressed effect after the user stops pressing the tile.
- FTappableStyle.motion - Motion-related properties for the tappable.
Implementation
@useResult
FTappableStyle copyWith({
FWidgetStateMap<MouseCursor>? cursor,
Duration? pressedEnterDuration,
Duration? pressedExitDuration,
FTappableMotion Function(FTappableMotion motion)? motion,
}) => FTappableStyle(
cursor: cursor ?? this.cursor,
pressedEnterDuration: pressedEnterDuration ?? this.pressedEnterDuration,
pressedExitDuration: pressedExitDuration ?? this.pressedExitDuration,
motion: motion != null ? motion(this.motion) : this.motion,
);