onAccepted method

void onAccepted()

If the gesture could be rejected and is eventually accepted, please call the corresponding function.

Implementation

void onAccepted() {
  assert(isInitialized, "The animation instances has not yet been initialized.");
  assert(isRejectable, "The gesture has already been defined as accepted.");
  isRejectable = false;
  _spreadAnimation.notifyListeners();
  _spreadAnimation.notifyStatusListeners(_spreadAnimation.status);
}