MotionSpec constructor
const
MotionSpec({
- required PressVerb verb,
- required MotionScheme scheme,
- required SpringToken pressIn,
- required SpringToken release,
- required EntryStyle entry,
- required ImpactStyle impact,
- SpringToken? releaseAlt,
- int depthCdp = 0,
- int scalePermille = 1000,
- int cornerPermille = 0,
- int squishPermille = 0,
- bool stateLayerSnap = false,
- int entryScalePermille = 1000,
- int entryOffsetCdp = 0,
- SpringToken? entrySpring,
- PressFx fx = PressFx.none,
- int stepMs = 0,
- int impactPermille = 800,
- bool releaseHaptic = false,
- int releaseImpactPermille = 0,
Implementation
const MotionSpec({
required this.verb,
required this.scheme,
required this.pressIn,
required this.release,
required this.entry,
required this.impact,
this.releaseAlt,
this.depthCdp = 0,
this.scalePermille = 1000,
this.cornerPermille = 0,
this.squishPermille = 0,
this.stateLayerSnap = false,
this.entryScalePermille = 1000,
this.entryOffsetCdp = 0,
this.entrySpring,
this.fx = PressFx.none,
this.stepMs = 0,
this.impactPermille = 800,
this.releaseHaptic = false,
this.releaseImpactPermille = 0,
});