copyWith method

MotionSpec copyWith({
  1. PressVerb? verb,
  2. MotionScheme? scheme,
  3. SpringToken? pressIn,
  4. SpringToken? release,
  5. SpringToken? releaseAlt,
  6. int? depthCdp,
  7. int? scalePermille,
  8. int? cornerPermille,
  9. int? squishPermille,
  10. bool? stateLayerSnap,
  11. EntryStyle? entry,
  12. int? entryScalePermille,
  13. int? entryOffsetCdp,
  14. SpringToken? entrySpring,
  15. PressFx? fx,
  16. int? stepMs,
  17. ImpactStyle? impact,
  18. int? impactPermille,
  19. bool? releaseHaptic,
  20. int? releaseImpactPermille,
})

Implementation

MotionSpec copyWith({
  PressVerb? verb,
  MotionScheme? scheme,
  SpringToken? pressIn,
  SpringToken? release,
  SpringToken? releaseAlt,
  int? depthCdp,
  int? scalePermille,
  int? cornerPermille,
  int? squishPermille,
  bool? stateLayerSnap,
  EntryStyle? entry,
  int? entryScalePermille,
  int? entryOffsetCdp,
  SpringToken? entrySpring,
  PressFx? fx,
  int? stepMs,
  ImpactStyle? impact,
  int? impactPermille,
  bool? releaseHaptic,
  int? releaseImpactPermille,
}) => MotionSpec(
  verb: verb ?? this.verb,
  scheme: scheme ?? this.scheme,
  pressIn: pressIn ?? this.pressIn,
  release: release ?? this.release,
  releaseAlt: releaseAlt ?? this.releaseAlt,
  depthCdp: depthCdp ?? this.depthCdp,
  scalePermille: scalePermille ?? this.scalePermille,
  cornerPermille: cornerPermille ?? this.cornerPermille,
  squishPermille: squishPermille ?? this.squishPermille,
  stateLayerSnap: stateLayerSnap ?? this.stateLayerSnap,
  entry: entry ?? this.entry,
  entryScalePermille: entryScalePermille ?? this.entryScalePermille,
  entryOffsetCdp: entryOffsetCdp ?? this.entryOffsetCdp,
  entrySpring: entrySpring ?? this.entrySpring,
  fx: fx ?? this.fx,
  stepMs: stepMs ?? this.stepMs,
  impact: impact ?? this.impact,
  impactPermille: impactPermille ?? this.impactPermille,
  releaseHaptic: releaseHaptic ?? this.releaseHaptic,
  releaseImpactPermille: releaseImpactPermille ?? this.releaseImpactPermille,
);