registerWatcher<T> method
Function used to register and add a ChangeWatcher for the application
Implementation
void registerWatcher<T>(State<T> variableState, T variable,
{ChangeWatcher<T>? watcher}) {
watchers.add(
watcher ?? ChangeWatcher<T>(initValue: variable, state: variableState));
}