addListener method
Register a closure to be called when the object notifies its listeners.
Implementation
@override
void addListener(VoidCallback listener) {
if (_listeners.isEmpty) {
_indicatorNotifier?.addListener(_onNotify);
}
_listeners.add(listener);
}