asBool property

bool get asBool

Convert this integer into boolean.

Returns true if this integer is greater than 0.

Implementation

bool get asBool => this > 0;