getAll method

Future<List<Map<String, dynamic>>> getAll()

Implementation

Future<List<Map<String, dynamic>>> getAll() async {
  final recordSnapshot = await _collection.find(_database);
  return recordSnapshot.map((snapshot) {
    var entity = snapshot.value as Map<String, dynamic>;
    return cloneMap(entity);
  }).toList();
}