get method

Future<List<T>> get({
  1. Map<String, dynamic> filters = const {},
  2. bool cache = true,
  3. bool store = true,
})

Implementation

Future<List<T>> get(
    {Map<String, dynamic> filters = const {},
    bool cache = true,
    bool store = true}) async {
  try {
    _startLoading();
    var res = await fetcher.get<T>(route, filters);
    _handleAfterGet(res, cache);
    if (!store && res.isList) return res.getList(_deserializer);
    _succeedLoading();
  } catch (e) {
    _failLoading();
    _logError(e, 'get method');
    if (options.throwErrors) rethrow;
  } finally {
    notifyListeners();
    return list;
  }
}