ImNum class

A wrapper for num values.

Use ImNum to safely transfer a numeric value between isolates. It also provides helper methods for converting the value.

Inheritance

Constructors

ImNum.new(num value)
Creates an ImNum with the given numeric value.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unwrap num
Returns the original Dart value by unwrapping this instance.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDouble() double
Returns the numeric value as a double.
toInt() int
Returns the numeric value as an int.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited