getAttribute method

dynamic getAttribute(
  1. String key
)

Get an attribute value, checking parent context if not found

Implementation

dynamic getAttribute(String key) {
  return attributes[key] ?? parent?.getAttribute(key);
}