copyWith method

MomentumSnap copyWith({
  1. double? spacing,
  2. double? offset,
  3. double? tolerance,
  4. double? durationMs,
})

A copy of this value with the given members replaced.

Implementation

MomentumSnap copyWith({
  double? spacing,
  double? offset,
  double? tolerance,
  double? durationMs,
}) => MomentumSnap(
  spacing: spacing ?? this.spacing,
  offset: offset ?? this.offset,
  tolerance: tolerance ?? this.tolerance,
  durationMs: durationMs ?? this.durationMs,
);