direction property

double direction

Returns the animation's play direction: 1 for forwards, -1 for backwards

Implementation

double get direction => _direction;
void direction=(double value)

Direction should only be +1 or -1

Implementation

set direction(double value) => _direction = value == -1 ? -1 : 1;