bool matches(String actionT, Element element) { final widget = element.widget; return (actionType == actionT && widget.runtimeType == this.appliesTo); }