isTrue method

bool isTrue()

Checks if the boolean value is true.

Returns true if the value is true, otherwise returns false.

Example:

bool? value = true;
print(value.isTrue()); // true

Implementation

bool isTrue() => validate().isTrue();