copyWith method

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

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

Parameters

Implementation

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