get method

dynamic get(
  1. dynamic field
)

Gets a nested field by String or FieldPath from this DocumentSnapshot.

Data can be accessed by providing a dot-notated path or FieldPath which recursively finds the specified data. If no data could be found at the specified path, a StateError will be thrown.

Implementation

dynamic get(dynamic field) =>
    _CodecUtility.valueDecode(_delegate.get(field), _firestore);