copyWith method

  1. @useResult
FTappableStyle copyWith({
  1. FWidgetStateMap<MouseCursor>? cursor,
  2. Duration? pressedEnterDuration,
  3. Duration? pressedExitDuration,
  4. FTappableMotion motion(
    1. FTappableMotion motion
    )?,
})

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

Consider using the CLI to generate a style.

Parameters

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