sign property Null safety

int? sign

Returns the sign of this integer.

Returns 0 for zero, -1 for values less than zero and +1 for values greater than zero.

Implementation

int? get sign => value?.sign;