label static method
Returns a human-readable label for the detected type.
Implementation
static String label(ServiceType type) {
switch (type) {
case ServiceType.service:
return 'Service';
case ServiceType.repository:
return 'Repository';
case ServiceType.controller:
return 'Controller';
case ServiceType.bloc:
return 'BLoC';
case ServiceType.cubit:
return 'Cubit';
case ServiceType.none:
return 'Unknown';
}
}