On<T>.data constructor
On<T>.data (
- T fn()
The callback is invoked only when the Injected model emits a notification with onData status.
Implementation
factory On.data(T Function() fn) {
return On._(
onIdle: null,
onWaiting: null,
onError: null,
onData: fn,
// onType: _OnType.onData,
);
}