watchVariable method
void
watchVariable(
- T variable
Function used to watch the variable for changes.
This function checks for changes in the variable and streams state changes whenver a change is denoted.
Implementation
void watchVariable(T variable) {
if (!_freeze) {
// Notify listeners whenever the variable changes
_valueController.add(variable);
}
}