operator [] method

dynamic operator [](
  1. String key
)

Syntactic sugar to access the otherMetadata values by subscripting Metadata directly. metadata["layout"] == metadata.otherMetadata["layout"]

Implementation

dynamic operator [](String key) => otherMetadata[key];