value property

Object? get value

The data as plain Dart values (see the class documentation), or null when there is none.

It is built once per snapshot and then cached. It is unmodifiable at every depth: changing a map or list throws UnsupportedError where the change is attempted. Copy it to change it.

A map iterates in priority order then key order, and a list by index, whatever the query's order: for orderByChild('n') the map's keys need not come by n. Iterate children for the query's order.

Implementation

Object? get value => _node.value;