isPositive method

bool isPositive()

Returns true if the integer is greater than zero.

Null values return false.

Implementation

bool isPositive() => (this ?? 0) > 0;