getAllData method

  1. @override
Future<List> getAllData(
  1. String collectionId
)
override

Implementation

@override
Future<List> getAllData(String collectionId) async {
  await initialize();

  final List resultList = [];
  SupabaseQueryBuilder fromRef = AbsDatabase.sbDBConn!.from(collectionId);
  await fromRef.select().then((snapshot) {
    for (var result in snapshot) {
      resultList.add(result);
    }
  });
  return resultList;
}