once method

Future<DataSnapshot?>? once()

Listens for a single value event and then stops listening.

Implementation

Future<DataSnapshot> once() async => (await onValue.first).snapshot;