nonNegative property

int get nonNegative

Returns this value clamped to zero or above.

Implementation

int get nonNegative => this < 0 ? 0 : this;