get static method

dynamic get({
  1. required String collectionName,
  2. List<FireWhereField>? where,
  3. FireOrder? orderBy,
})

Implementation

static get({
  required String collectionName,
  List<FireWhereField>? where,
  FireOrder? orderBy,
}) async {
  var ref = getRef(
    collectionName: collectionName,
    where: where,
    orderBy: orderBy,
  );
  try {
    if (Platform.isWindows) {
      return await ref.get();
    } else {
      return await ref.get();
    }
  } on Exception catch (_) {
    print(_);
  }
}