set method

  1. @override
Future<void> set(
  1. Map<String, dynamic> data, [
  2. SetOptions? options
])
override

Sets data on the document, overwriting any existing data. If the document does not yet exist, it will be created.

If SetOptions are provided, the data can be merged into an existing document instead of overwriting.

Implementation

@override
Future<void> set(Map<String, dynamic> data, [SetOptions? options]) => _set ==
        null
    ? throw UnimplementedError('You must supply set to the constructor of '
        'DocumentReferenceFake')
    : _set!(data);