Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:js
  3. JsObject class
JsObject
description

JsObject class

A proxy on a JavaScript object.

The properties of the JavaScript object are accessible via the[] and[]= operators. Methods are callable viacallMethod.

Implementers

Constructors

JsObject(JsFunctionconstructor, [List?arguments])
Constructs a JavaScript object from its nativeconstructor and returnsa proxy to it.
factory
JsObject.fromBrowserObject(Objectobject)
Constructs aJsObject that proxies a native Dart object;for expert useonly.
factory
JsObject.jsify(Objectobject)
Recursively converts a JSON-like collection of Dart objects to acollection of JavaScript objects and returns aJsObject proxy to it.
factory

Properties

hashCodeint
The hash code for this object.
no setteroverride
runtimeTypeType
A representation of the runtime type of the object.
no setterinherited

Methods

callMethod(Objectmethod, [List?args])→ dynamic
Callsmethod on the JavaScript object with the argumentsargs andreturns the result.
deleteProperty(Objectproperty)→ void
Removesproperty from the JavaScript object.
hasProperty(Objectproperty)bool
Returnstrue if the JavaScript object contains the specified propertyeither directly or though its prototype chain.
instanceof(JsFunctiontype)bool
Returnstrue if the JavaScript object hastype in its prototype chain.
noSuchMethod(Invocationinvocation)→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString()String
Returns the result of the JavaScript objectstoString method.
override

Operators

operator ==(Objectother)bool
The equality operator.
override
operator [](Objectproperty)→ dynamic
Returns the value associated withproperty from the proxied JavaScriptobject.
operator []=(Objectproperty,Object?value)→ void
  1. Dart
  2. dart:js
  3. JsObject class
dart:js library

[8]ページ先頭

©2009-2025 Movatter.jp