asBool property

bool get asBool

The value as a bool, or throw if not.

Implementation

bool get asBool => throw StateError('Not a bool.');