isServiceClass static method

bool isServiceClass(
  1. ClassDeclaration node
)

Returns true if the class is a service, repository, controller, etc.

Implementation

static bool isServiceClass(ClassDeclaration node) {
  return detect(node) != ServiceType.none;
}