ColRef<T extends Object?>.withReference constructor

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

Implementation

ColRef.withReference(dynamic reference, {FirestoreConverter<T>? converter}) {
  if (reference is CollectionReference<Map<String, dynamic>>) {
    _ref_original = reference;
  } else {
    _ref_windows = reference;
  }
  _converter = converter;
}