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