val property

bool get val

A helper getter to return the non-nullable boolean value.

Returns the current boolean value if it's not null; otherwise, returns false by default.

Implementation

bool get val => this ?? false;