cancelFrameCallbackWithId method
- int id
Cancels the transient frame callback with the given id
.
Removes the given callback from the list of frame callbacks. If a frame has been requested, this does not also cancel that request.
Transient frame callbacks are those registered using scheduleFrameCallback.
Implementation
void cancelFrameCallbackWithId(int id) {
assert(id > 0);
_transientCallbacks.remove(id);
_removedIds.add(id);
}