Skip to main content

toJs()

toJs(dart, check): any

Instantiates the corresponding JS handler for the Dart object [dart]. See also toDart

Parameters

ParameterTypeDefault valueDescription
dartanyundefinedDart handle
checkbooleanfalsewhen true, throws an exception if the object can't be converted to JS.

Returns

any

JavaScript wrapper for the Dart object

Source

src/wrappers_impl.ts:29