Collection constructor
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;
}