Returns a read-only map of all metadata entries.
Map<Object, Object?> get metadata => Map.unmodifiable(_metadata);