boolStr function

bool boolStr(
  1. Object value
)

boolean-from-string(): true for true (any case) or 1.

Implementation

bool boolStr(Object value) {
  final s = toXPathString(value);
  return s.toLowerCase() == 'true' || s == '1';
}