once method

Listens for a single value event and then stops listening.

Implementation

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