isNegativeNumber function

bool isNegativeNumber(
  1. num? n
)

Returns true if n < 0. If n is null returns false.

Implementation

bool isNegativeNumber(num? n) => n != null && n < 0;