position property
Duration
get
position
Where the playhead is. Assigning parks it there and draws that moment: pure, any state, any direction, and it starts no clock. Past the end is legal and holds the end pose — an editor needs the playhead beyond the last key to put the next one there.
Implementation
Duration get position => _position;
set
position
(Duration t)
Implementation
set position(Duration t) {
_position = t < Duration.zero ? Duration.zero : t;
playable.apply(_position);
notifyListeners();
}