loadView method
FutureOr<void>
loadView(
- FutureOr<
void> load(), { - String? readyReason,
- Iterable<
IObservable< ? readyChanges,BaseEvent> > - Iterable<
IObservable< ? errorChanges,BaseEvent> >
Implementation
@protected
FutureOr<void> loadView(
FutureOr<void> Function() load, {
String? readyReason,
Iterable<IObservable<BaseEvent>>? readyChanges,
Iterable<IObservable<BaseEvent>>? errorChanges,
}) async {
try {
await load();
ready(changes: readyChanges, reason: readyReason);
} on Exception catch (e) {
error(e, changes: errorChanges);
}
}