push method

void push(
  1. AnimationRequest request, [
  2. bool queue = true
])

Implementation

void push(AnimationRequest request, [bool queue = true]) {
  if (queue) {
    _requests.add(request);
  } else {
    _runner = null;
    _requests = [request];
  }
  _runner ??= AnimationRunner(
      _value, request.target, request.duration, request.curve);
  notifyListeners();
}