asBool property

bool get asBool

Implementation

bool get asBool => ['true', '1', 'yes'].contains(toString().toLowerCase());