isTrue property

bool get isTrue

Returns true if the value is not null and true. Otherwise false is returned.

Implementation

bool get isTrue => this != null && this!;