isTruthy property

  1. @override
bool get isTruthy
override

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

Implementation

@override
bool get isTruthy => value;