position property Null safety

Animation<double> position

The visual value of the control.

Usually set to ToggleableStateMixin.position.

Implementation

Animation<double> get position => _position!;
void position=(Animation<double> value)

Implementation

set position(Animation<double> value) {
  if (value == _position) {
    return;
  }
  _position?.removeListener(notifyListeners);
  value.addListener(notifyListeners);
  _position = value;
  notifyListeners();
}