sign property Null safety

double sign

Returns the sign of the double's numerical value.

Returns -1.0 if the value is less than zero, +1.0 if the value is greater than zero, and the value itself if it is -0.0, 0.0 or NaN.

Implementation

double get sign => value.sign;