isPositiveNumber function

bool isPositiveNumber(
  1. num? n
)

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

Implementation

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