direction property Null safety
Returns the animation's play direction: 1 for forwards, -1 for backwards
Implementation
int get direction => _direction;
Direction should only be +1 or -1
Implementation
set direction(int value) => _direction = value == -1 ? -1 : 1;