collection abstract method

FutureOr<Collection?> collection(
  1. String name, [
  2. String scope = Scope.defaultName
])

Returns the Collection with the given name in the given scope.

Returns null if the collection does not exist.

Implementation

FutureOr<Collection?> collection(
  String name, [
  String scope = Scope.defaultName,
]);