motion property

GlassDropMotion get motion

The spec the stretch follows. Setting GlassDropMotion.none stops the ticker and puts the drop back to round at once.

Implementation

GlassDropMotion get motion => _model.motion;
set motion (GlassDropMotion value)

Never notifies: set from a build's dependencies, which rebuild anyway.

Implementation

set motion(GlassDropMotion value) {
  if (value == _model.motion) {
    return;
  }
  _model.motion = value;
  if (value.isNone) {
    _model.reset();
    _shown = 0;
    _ticker.stop();
  }
}