withSign method

num withSign(
  1. num sign
)

Returns this value with the sign bit same as of the sign value.

Implementation

num withSign(num sign) => this * sign;