add method

Future<DocRef<T>> add(
  1. T value
)

Implementation

Future<DocRef<T>> add(T value) async {
  if (_ref_windows != null) {
    var document = await _ref_windows!.add(value is Map<String, dynamic>
        ? value
        : _converter!.toFirestore(value, null));
    return doc(document.id);
  } else {
    var document = await _ref_original!.add(value is Map<String, dynamic>
        ? value
        : _converter!.toFirestore(value, null));
    return doc(document.id);
  }
}