MutableDocument.withId constructor Null safety

MutableDocument.withId(
  1. String id,
  2. [Map<String, Object?>? data]
)

Creates a new MutableDocument with a given id, optionally initialized with data.

Allowed value types are Iterable, Array, Blob, DateTime, Map<String, Object?>, Dictionary, null, number types, and String.

The collections must contain only the above types.

Implementation

factory MutableDocument.withId(String id, [Map<String, Object?>? data]) =>
    MutableDelegateDocument.withId(id, data);