getAttribute method

  1. @override
String? getAttribute(
  1. String name
)
override

Returns the value of the attribute of name.

Implementation

@override
String? getAttribute(String name) {
  if (isNodeElement) {
    return nodeAsElement!.attributes[name];
  }
  return null;
}