fetch method

Future<void> fetch()

Implementation

Future<void> fetch() async {
  _emit(const AsyncLoading());
  try {
    final data = await _future;
    _emit(AsyncData(data));
  } catch (e, st) {
    _emit(AsyncError(e, st));
  }
}