toBool method

bool toBool()

Returns true if this integer is greater than 0. Otherwise returns false.

Implementation

bool toBool() => this > 0;