operator [] method

Object? operator [](
  1. Object field
)

The value of field, or null if the field or the document does not exist. Same as get.

Implementation

Object? operator [](Object field) => get(field);