attribute method

String? attribute(
  1. String name, {
  2. String? def,
})

Gets the attribute for the current position of the parser.

Implementation

String? attribute(String name, {String? def}) =>
    getAttribute(attributes, name, def: def);