DocRef<T extends Object?>.withReference constructor

DocRef<T extends Object?>.withReference(
  1. dynamic reference, {
  2. FirestoreConverter<T>? converter,
})

Implementation

DocRef.withReference(dynamic reference, {FirestoreConverter<T>? converter}) {
  if (reference is firedart.DocumentReference) {
    _ref_windows = reference;
  } else {
    _ref_original = reference;
  }
  _converter = converter;
}