ScriptingCapabilityDelegate mixin

A mixin that provides capabilities for managing and run scripts in the Duit UI system. Classes that mix in this delegate should provide concrete implementations for handling script execution, evaluation, and initialization.

Mixin applications

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

evalScript(String source) Future<void>
Eval script source code
execScript(String functionName, {String? url, Map<String, dynamic>? meta, Map<String, dynamic>? body}) Future<Map<String, dynamic>?>
Based on the name of the function, starts its execution.
initScriptingCapability() Future<void>
Initializes the scripting capability.
linkDriver(UIDriver driver) → void
Links a UIDriver instance to this holder.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
releaseResources() → void
Called to clean up any external resources, subscriptions, or handlers typically when a delegate is being disposed of or detached. Implementations should ensure all open streams or event sources are closed.
toString() String
A string representation of this object.
inherited

Operators

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