getAttributeValueAsBool method

bool getAttributeValueAsBool(
  1. String name, [
  2. DOMContext? domContext
])

Calls getAttributeValue and returns parsed as bool.

Implementation

bool getAttributeValueAsBool(String name, [DOMContext? domContext]) {
  return parseBool(getAttributeValue(name, domContext), false)!;
}