matches method

bool matches(
  1. ExtensionContext context
)
inherited

This method is called to test whether or not this extension needs to do any work in this context.

By default returns true if supportedTags contains the element's name

Implementation

bool matches(ExtensionContext context) {
  return supportedTags.contains(context.elementName);
}