NamingService class
Generates consistent class names, file names, paths, and template variables from feature and resource names.
Naming values are exposed in snake_case, camelCase, and PascalCase formats for use by FKIT code-generation commands and templates.
Constructors
- NamingService({required String feature, String? name})
-
Creates a naming service for the specified
featureand optionalname.
Properties
- bloc → String
-
The generated Bloc class name.
latefinal
- blocBase → String
-
The Bloc file name without its Dart extension.
latefinal
- blocFile → String
-
The generated Bloc file name.
latefinal
- blocInstance → String
-
The generated Bloc instance name.
latefinal
- di → String
-
The generated dependency injection class name.
latefinal
- diBase → String
-
The dependency injection file name without its Dart extension.
latefinal
- diFile → String
-
The generated dependency injection file name.
latefinal
- diInstance → String
-
The generated dependency injection instance name.
latefinal
- dto → String
-
The generated DTO class name.
latefinal
- dtoBase → String
-
The DTO file name without its Dart extension.
latefinal
- dtoFile → String
-
The generated DTO file name.
latefinal
- dtoInstance → String
-
The generated DTO instance name.
latefinal
- entity → String
-
The generated entity class name.
latefinal
- entityBase → String
-
The entity file name without its Dart extension.
latefinal
- entityFile → String
-
The generated entity file name.
latefinal
- entityInstance → String
-
The generated entity instance name.
latefinal
- event → String
-
The generated Bloc event class name.
latefinal
- eventBase → String
-
The Bloc event file name without its Dart extension.
latefinal
- eventFile → String
-
The generated Bloc event file name.
latefinal
- eventInstance → String
-
The generated Bloc event instance name.
latefinal
- feature → String
-
The feature name used to generate feature-based naming values.
final
- featureCamel → String
-
The feature name formatted as camelCase.
latefinal
- featurePascal → String
-
The feature name formatted as PascalCase.
latefinal
- featurePath → String
-
The generated feature directory path.
latefinal
- featureSnake → String
-
The feature name formatted as snake_case.
latefinal
- freezedBloc → String
-
The generated Freezed Bloc implementation class name.
latefinal
- freezedDto → String
-
The generated Freezed DTO implementation class name.
latefinal
- freezedEntity → String
-
The generated Freezed entity implementation class name.
latefinal
- freezedEvent → String
-
The generated Freezed event implementation class name.
latefinal
- freezedState → String
-
The generated Freezed state implementation class name.
latefinal
- fromJson → String
-
The generated JSON deserialization function name.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- localDatasource → String
-
The generated local datasource class name.
latefinal
- localDatasourceBase → String
-
The local datasource file name without its Dart extension.
latefinal
- localDatasourceFile → String
-
The generated local datasource file name.
latefinal
- localDatasourceImpl → String
-
The generated local datasource implementation class name.
latefinal
- localDatasourceImplBase → String
-
The local datasource implementation file name without its Dart extension.
latefinal
- localDatasourceImplFile → String
-
The generated local datasource implementation file name.
latefinal
- localDatasourceImplInstance → String
-
The generated local datasource implementation instance name.
latefinal
- localDatasourceInstance → String
-
The generated local datasource instance name.
latefinal
- mapper → String
-
The generated mapper class name.
latefinal
- mapperBase → String
-
The mapper file name without its Dart extension.
latefinal
- mapperFile → String
-
The generated mapper file name.
latefinal
- mapperInstance → String
-
The generated mapper instance name.
latefinal
- name → String?
-
The optional resource name used for entity and data-layer components.
final
- remoteDatasource → String
-
The generated remote datasource class name.
latefinal
- remoteDatasourceBase → String
-
The remote datasource file name without its Dart extension.
latefinal
- remoteDatasourceFile → String
-
The generated remote datasource file name.
latefinal
- remoteDatasourceImpl → String
-
The generated remote datasource implementation class name.
latefinal
- remoteDatasourceImplBase → String
-
The remote datasource implementation file name without its Dart extension.
latefinal
- remoteDatasourceImplFile → String
-
The generated remote datasource implementation file name.
latefinal
- remoteDatasourceImplInstance → String
-
The generated remote datasource implementation instance name.
latefinal
- remoteDatasourceInstance → String
-
The generated remote datasource instance name.
latefinal
- repository → String
-
The generated repository class name.
latefinal
- repositoryBase → String
-
The repository file name without its Dart extension.
latefinal
- repositoryFile → String
-
The generated repository file name.
latefinal
- repositoryImpl → String
-
The generated repository implementation class name.
latefinal
- repositoryImplBase → String
-
The repository implementation file name without its Dart extension.
latefinal
- repositoryImplFile → String
-
The generated repository implementation file name.
latefinal
- repositoryImplInstance → String
-
The generated repository implementation instance name.
latefinal
- repositoryInstance → String
-
The generated repository instance name.
latefinal
- resourceCamel → String
-
The resource name formatted as camelCase.
latefinal
- resourceName → String
-
The resource name used for resource-based naming values.
latefinal
- resourcePascal → String
-
The resource name formatted as PascalCase.
latefinal
- resourceSnake → String
-
The resource name formatted as snake_case.
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- screen → String
-
The generated screen class name.
latefinal
- screenBase → String
-
The screen file name without its Dart extension.
latefinal
- screenFile → String
-
The generated screen file name.
latefinal
- screenInstance → String
-
The generated screen instance name.
latefinal
- state → String
-
The generated Bloc state class name.
latefinal
- stateBase → String
-
The Bloc state file name without its Dart extension.
latefinal
- stateFile → String
-
The generated Bloc state file name.
latefinal
- stateInstance → String
-
The generated Bloc state instance name.
latefinal
- toJson → String
-
The generated JSON serialization function name.
latefinal
- usecase → String
-
The generated use case class name.
latefinal
- usecaseBase → String
-
The use case file name without its Dart extension.
latefinal
- usecaseFile → String
-
The generated use case file name.
latefinal
- usecaseInstance → String
-
The generated use case instance name.
latefinal
-
variables
→ Map<
String, String> -
The generated naming values available to FKIT templates.
no setter
- xcoreFile → String
-
The name of the generated xcore export file.
latefinal
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolveClass(
String component) → String -
Resolves the generated class name for the specified
component. -
resolveVariable(
String component) → String -
Resolves the generated variable name for the specified
component. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited