DocumentResult constructor
Implementation
factory DocumentResult({
Document? document,
Err? err,
}) {
final _result = create();
if (document != null) {
_result.document = document;
}
if (err != null) {
_result.err = err;
}
return _result;
}