operator [] method

String? operator [](
  1. String key
)

allows to access properties like a map

Implementation

String? operator [](String key) => _props[key];