up method

void up({
  1. required SpringDescription spring,
  2. SpringDescription? shapeSpring,
  3. bool reduceMotion = false,
})

Releases the key on the spring (release), no earlier than CalcThemeData.minPress after down. With reduceMotion, p jumps to 0 and the tint fades out on effectsFast.

Implementation

void up({
  required SpringDescription spring,
  SpringDescription? shapeSpring,
  bool reduceMotion = false,
}) {
  if (!_down) return;
  _releaseSpring = spring;
  _shapeSpring = shapeSpring;
  _releaseReduced = reduceMotion;
  if (_minElapsed) {
    _release();
  } else {
    _releasePending = true;
  }
}