DocumentResult constructor

DocumentResult({
  1. Document? document,
  2. Err? err,
})

Implementation

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