getPosition method

double getPosition()

get the animated button position

Implementation

double getPosition() {
  log(_position.toString());
  if (_position < 0) {
    return 0;
  } else if (_position > cancelPosition - _height) {
    return cancelPosition - _height;
  } else {
    return _position;
  }
}