toJs()
toJs(
dart,check):any
Instantiates the corresponding JS handler for the Dart object [dart]. See also toDart
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
dart | any | undefined | Dart handle |
check | boolean | false | when true, throws an exception if the object can't be converted to JS. |
Returns
any
JavaScript wrapper for the Dart object