getAttribute

String? getAttribute(

  1. String name
)

Gets an attribute value.

Implementation

String? getAttribute(String name) => switch (_node.getAttribute(name)) {
  final JSString s => s.toDart,
  _ => null,
};