W3cubDocs

/Dart 2

isTagSupported method

bool isTagSupported (String tag)
override

Checks to see if the SVG element type is supported by the current platform.

The tag should be a valid SVG element tag name.

Implementation

static bool isTagSupported(String tag) {
  var e = new SvgElement.tag(tag);
  return e is SvgElement && !(e is UnknownElement);
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-svg/SvgElement/isTagSupported.html