onRemoving method
Callback used to notify a node that it is about to be removed.
Implementation
@override
void onRemoving() {
if (timer != null) {
timer?.dispose();
}
storeBuffer();
while (onRemoveCallbacks.isNotEmpty) {
onRemoveCallbacks.removeAt(0)();
}
}