ExtensionContext class

Per-extension context handed to LeonardExtension.initialize.

Auto-namespaces VM service extensions under ext.exploration.<namespace>.<suffix>.

Constructors

ExtensionContext({required String namespace})

Properties

hashCode int
The hash code for this object.
no setterinherited
namespace String
The owning extension's namespace (validated by the registry).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerExtension(String suffix, ExtensionHandler handler) → void
Register a VM service extension under this extension's namespace.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

buildExtensionMethodName(String ns, String suffix) String
Compose the fully-qualified VM service extension method name for a given namespace and suffix.