isTrue property Null safety

bool isTrue

Whether the underlying value is not null and true

Implementation

bool get isTrue => isNotNull && _value == true;