operator [] method

String? operator [](
  1. Object? key
)

Operator for retrieving a namespace URI by its prefix.

The key is the prefix to look up. Returns the namespace URI for the prefix, or null if not found.

Implementation

String? operator [](Object? key) => _mappings[key];