doc method

  1. @override
DocumentReference<Map<String, dynamic>> doc([
  1. String? path
])
override

Returns a DocumentReference with the provided path.

If no path is provided, an auto-generated ID is used.

The unique key generated is prefixed with a client-generated timestamp so that the resulting list will be chronologically-sorted.

Implementation

@override
DocumentReference<Map<String, dynamic>> doc([String? path]) => _doc == null
    ? throw UnimplementedError(
        'You must supply doc to the constructor of '
        'CollectionReferenceFake',
      )
    : _doc!(path);