update method

  1. @override
Future<void> update(
  1. Map<Object, Object?> data
)
override

Updates data on the document. Data will be merged with any existing document data.

Objects key can be a String or a FieldPath.

If no document exists yet, the update will fail.

Implementation

@override
Future<void> update(Map<Object, Object?> data) => _update == null
    ? throw UnimplementedError('You must supply update to the constructor of '
        'DocumentReferenceFake')
    : _update!(data);