ProxyHolder class abstract
A parent class for objects that can hold references to JavaScript objects.
It has convenience methods for invoking methods on the JavaScript proxy,
a method to add event listeners to the proxy, and a dispose method.
dispose
only needs to be called if event listeners were added to an object.
Constructors
- ProxyHolder(JsObject? jsProxy)
Properties
Methods
-
call(
String methodName) → dynamic -
callArg(
String methodName, dynamic arg) → dynamic -
callArgs(
String methodName, List args) → dynamic -
dispose(
) → void - This method should be called if any events listeners were added to the object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onEvent<
T> (String eventName, {int argCount = 1}) → Stream< T?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override