JsObject class
A proxy on a JavaScript object.
The properties of the JavaScript object are accessible via the [] and
[]= operators. Methods are callable via callMethod.
- Implementers
Constructors
-
JsObject(JsFunction constructor,
[List arguments] ) -
Constructs a JavaScript object from its native
constructorand returns a proxy to it.factory -
JsObject.fromBrowserObject(dynamic object
) -
Constructs a JsObject that proxies a native Dart object; for expert use
only. [...]
factory
-
JsObject.jsify(dynamic object
) -
Recursively converts a JSON-like collection of Dart objects to a
collection of JavaScript objects and returns a JsObject proxy to it. [...]
factory
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, override
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
callMethod(
dynamic method, [List args] ) → dynamic -
Calls
methodon the JavaScript object with the argumentsargsand returns the result. [...] -
deleteProperty(
dynamic property ) → void -
Removes
propertyfrom the JavaScript object. [...] -
hasProperty(
dynamic property ) → bool -
Returns
trueif the JavaScript object contains the specified property either directly or though its prototype chain. [...] -
instanceof(
JsFunction type ) → bool -
Returns
trueif the JavaScript object hastypein its prototype chain. [...] -
toString(
) → String -
Returns the result of the JavaScript objects
toStringmethod.override -
noSuchMethod(
Invocation invocation ) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
Operators
-
operator ==(
dynamic other ) → bool -
The equality operator. [...]
override
-
operator [](
dynamic property ) → dynamic -
Returns the value associated with
propertyfrom the proxied JavaScript object. [...] -
operator []=(
dynamic property, dynamic value ) → void