whenStable method
void
whenStable(
- void callback()
Registers callback
to be invoked when change detection is completed.
This is commonly referred to as stable, that-is that the DOM representation of the app is synchronized with the Dart data and template models, and no more changes are (currently) epected.
Implementation
void whenStable(void Function() callback) {
_storeCallback(callback);
_runCallbacksIfStable();
}