set method

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

On disconnect, replaces the location's data with value, and its priority with priority when given. Values are validated at the call as in DatabaseReference.set.

Implementation

Future<void> set(Object? value, {Object? priority}) =>
    _set('OnDisconnect.set', value, priority);