set abstract method

Future<void> set(
  1. dynamic value, {
  2. dynamic priority,
})

Write value to the location with the specified priority if applicable.

This will overwrite any data at this location and all child locations.

Data types that are allowed are String, boolean, int, double, Map, List.

The effect of the write will be visible immediately and the corresponding events ('onValue', 'onChildAdded', etc.) will be triggered. Synchronization of the data to the Firebase servers will also be started, and the Future returned by this method will complete after synchronization has finished.

Passing null for the new value is equivalent to calling remove().

A single set() will generate a single onValue event at the location where the set() was performed.

Implementation

Future<void> set(dynamic value, {dynamic priority});