fetch method

void fetch()

Fetch resolver

Implementation

void fetch() {
  if (state is! LoadingState || !init) {
    init = true;
    loading();
    _resolver = CancelableOperation.fromFuture(resolver);
    _resolver?.value.then((result) {
      success(result);
    }).catchError((e, s) {
      fail(e, s);
    });
  }
}