On this page
JsObject class
Proxies a JavaScript object to Dart.
The properties of the JavaScript object are accessible via the [] and []= operators. Methods are callable via callMethod.
- Implemented by
 
Constructors
- JsObject(JsFunction constructor, [ List arguments ]) 
    factory
 - 
    
Constructs a new JavaScript object from
constructorand returns a proxy to it. - JsObject.fromBrowserObject(object) 
    factory
 - 
    
Constructs a JsObject that proxies a native Dart object; for expert use only.
 - JsObject.internal()
 - JsObject.jsify(object) 
    factory
 - 
    
Recursively converts a JSON-like collection of Dart objects to a collection of JavaScript objects and returns a JsObject proxy to it.
 
Properties
- hashCode → int
    read-only
 - runtimeType → Type
    read-only, inherited
 - 
    
A representation of the runtime type of the object.
 
Operators
- operator ==(
other) → dynamic  - 
    
The equality operator.
 - operator [](
property) → dynamic  - 
    
Returns the value associated with
propertyfrom the proxied JavaScript object. - operator []=(
property, value) → dynamic  - 
    
Sets the value associated with
propertyon the proxied JavaScript object. 
Methods
- callMethod(
String method, [ List args ]) → dynamic  - 
    
Calls
methodon the JavaScript object with the argumentsargsand returns the result. - deleteProperty(
String property) → void  - 
    
Removes
propertyfrom the JavaScript object. - hasProperty(
String 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. - noSuchMethod(
Invocation invocation) → dynamic inherited - 
    
Invoked when a non-existent method or property is accessed.
 
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
 https://api.dartlang.org/stable/1.24.3/dart-js/JsObject-class.html