toJS property

JSNumber get toJS

Converts this num to a JSNumber.

Implementation

JSNumber get toJS => DoubleToJSNumber(toDouble()).toJS;