copyWith method
- @useResult
- FVariantsValueDelta<
FTappableVariantConstraint, FTappableVariant, MouseCursor, Delta> ? cursor, - Duration? pressedEnterDuration,
- Duration? pressedExitDuration,
- FTappableMotionDelta? motion,
Returns a copy of this FTappableStyle with the given properties replaced.
See customizing widget styles.
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({
FVariantsValueDelta<FTappableVariantConstraint, FTappableVariant, MouseCursor, Delta>? cursor,
Duration? pressedEnterDuration,
Duration? pressedExitDuration,
FTappableMotionDelta? motion,
}) => .new(
cursor: cursor?.call(this.cursor) ?? this.cursor,
pressedEnterDuration: pressedEnterDuration ?? this.pressedEnterDuration,
pressedExitDuration: pressedExitDuration ?? this.pressedExitDuration,
motion: motion?.call(this.motion) ?? this.motion,
);