loadRequest method

  1. @protected
Future<void> loadRequest()

The actual loading process is done from the API when it is loaded.

By overriding, it is possible to use plugins, etc. in addition to simply retrieving from the URL.

Implementation

@protected
Future<void> loadRequest() async {
  final res = await Api.get(getEndpoint, headers: getHeaders);
  onCatchResponse(res);
  value = fromMap(filterOnLoad(fromResponse(res.body)));
}