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.

Implementers

Constructors

ProxyHolder(JsObject? jsProxy)

Properties

hashCode int
The hash code for this object.
no setteroverride
jsProxy JsObject?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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