copyWith method

  1. @useResult
FModalSheetMotion copyWith({
  1. Curve? barrierCurve,
  2. Duration? expandDuration,
  3. Duration? collapseDuration,
  4. Curve? curve,
})

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

Parameters

Implementation

@useResult
FModalSheetMotion copyWith({
  Curve? barrierCurve,
  Duration? expandDuration,
  Duration? collapseDuration,
  Curve? curve,
}) => FModalSheetMotion(
  barrierCurve: barrierCurve ?? this.barrierCurve,
  expandDuration: expandDuration ?? this.expandDuration,
  collapseDuration: collapseDuration ?? this.collapseDuration,
  curve: curve ?? this.curve,
);