Collection constructor

Collection({
  1. String? name,
  2. Iterable<Document>? documents,
  3. Int64? size,
})

Implementation

factory Collection({
  $core.String? name,
  $core.Iterable<Document>? documents,
  $fixnum.Int64? size,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (documents != null) {
    _result.documents.addAll(documents);
  }
  if (size != null) {
    _result.size = size;
  }
  return _result;
}