isTruthy property

bool get isTruthy
override

Whether the value counts as true in an @if statement and other contexts.

Implementation

bool get isTruthy => value;