asBool property

bool asBool

Convert this value to a bool or return false if it is not a bool.

Implementation

bool get asBool {
  return value == 'true' || asNum > 0;
}