addToList method

Future<bool> addToList(
  1. String key,
  2. dynamic value
)

Function to add a value to a list in the room

Implementation

Future<bool> addToList(String key, dynamic value) {
  return ref!.child(key).push().set(value).then((value) => true);
}