StateListener<T> constructor
const
StateListener<T> ({})
Creates a StateListener.
The parameters watchable, onStateChanged and child must not be null.
Implementation
const StateListener({
Key? key,
required this.watchable,
required this.onStateChanged,
required this.child,
}) : super(key: key);