serviceBaseName static method

String serviceBaseName(
  1. String originalName
)

Implementation

static String serviceBaseName(String originalName) {
  if (originalName.endsWith('Service')) {
    return '${originalName}Base'; // avoid: ServiceServiceBase
  } else {
    return '${originalName}ServiceBase';
  }
}