getAllResources method

Future<List<Resource>> getAllResources (
  1. String password
)

Implementation

Future<List<Resource>> getAllResources(String password) async {
  final resourceTypes = await _getResourceTypes(password);
  final resourceList = <Resource>[];
  for (final resource in resourceTypes) {
    final partialList =
        await getAllSortedById(password, resourceType: resource);
    partialList.forEach(resourceList.add);
  }
  return resourceList;
}