set method
Replaces the data at this location with value, and its priority with priority. Without
priority the location has no priority afterwards, unless value is a map with a .priority
key. A null value, or an empty map or list (see the class documentation), removes the data,
and no priority is kept. Fires local events before the Future completes; see the class
documentation for completion, rollback and value rules. A transaction at, above or below this
location may fail with overridden-by-set (see runTransaction). With persistence the write
is stored on disk and sent again after a restart; the Future of the run that made it is gone
then.
A value whose longest chain of keys together with this path is longer than 768 bytes throws
an ArgumentError, and nothing is sent. The Database emulator refused, with unknown, a write
the client accepts, with a chain of about 765 bytes; the production server accepted that write
(measured once on each). A flat multi-path update is checked path by path.
Implementation
Future<void> set(Object? value, {Object? priority}) =>
_set('set', value, priority);