getAllSortedById method

Future<List<Resource>> getAllSortedById (
  1. String password,
  2. {String resourceType,
  3. Resource resource}
)

Implementation

Future<List<Resource>> getAllSortedById(String password,
    {String resourceType, Resource resource}) async {
  final type = resourceType ?? resource?.resourceType ?? '';
  if (type.isNotEmpty) {
    _setStoreType(type);
    final finder = Finder(sortOrders: [SortOrder('id')]);
    return _search(password, finder);
  }
  return [];
}