asBool property

bool asBool

The value as a bool, or throw if not.

Implementation

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