isWidget static method
Returns true if the class is a StatelessWidget or StatefulWidget.
Implementation
static bool isWidget(ClassDeclaration node) {
return detect(node) != WidgetType.none;
}
Returns true if the class is a StatelessWidget or StatefulWidget.
static bool isWidget(ClassDeclaration node) {
return detect(node) != WidgetType.none;
}