getHrefAttribute function

String? getHrefAttribute(
  1. Map<String, String> attributes
)

Get the xlink:href or href attribute, preferring xlink.

SVG 1.1 specifies that these attributes should be in the xlink namespace. SVG 2 deprecates that namespace.

Implementation

String? getHrefAttribute(Map<String, String> attributes) => getAttribute(
      attributes,
      'href',
      def: getAttribute(attributes, 'href'),
    );