add method

  1. @override
void add(
  1. T item, {
  2. bool notify = true,
})
override

Adds an item to the Realtime Database.

Note that notify has no effect here and should not be used.

Implementation

@override
void add(T item, {bool notify = true}) {
  assert(notify, 'Notify has no effect here and should not be used.');

  _dataRef.child((item as ItemSerializable).id).set(item.serialize());
  _availableIdsRef.child(item.id).set(true);
}