copyWith method

  1. @useResult
FTappableStyle copyWith({
  1. FVariantsValueDelta<FTappableVariantConstraint, FTappableVariant, MouseCursor, Delta>? cursor,
  2. Duration? pressedEnterDuration,
  3. Duration? pressedExitDuration,
  4. FTappableMotionDelta? motion,
})

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

See customizing widget styles.

Parameters

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,
);