listMaxItems method

Future<ListResult> listMaxItems({
  1. int max = 10,
  2. String filePath = '/',
})

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;
}