listMaxItems method
Lists items with pagination under a specified filePath
, up to max
items.
Implementation
Future<firebase_storage.ListResult> listMaxItems(
{int max = 10, String filePath = '/'}) async {
firebase_storage.ListResult result = await storage
.ref(filePath)
.list(firebase_storage.ListOptions(maxResults: max));
return result;
}