Names class
Normalized name variants used by Clarc templates.
Names turns user-facing labels into Dart- and file-friendly identifiers.
The generator uses these values for folder names, file names, class names,
route names, dependency-injection registrations, and generated variables.
final names = Names('User Profile');
print(names.snake); // user_profile
print(names.pascal); // UserProfile
print(names.camel); // userProfile
Properties
- camel → String
-
The normalized
camelCasename.final - hashCode → int
-
The hash code for this object.
no setterinherited
- pascal → String
-
The normalized
PascalCasename.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- snake → String
-
The normalized
snake_casename.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
toCamelCase(
String raw) → String -
Converts
rawinto a Dart-friendlycamelCaseidentifier. -
toPascalCase(
String raw) → String -
Converts
rawinto a Dart-friendlyPascalCaseidentifier. -
toSnakeCase(
String raw) → String -
Converts
rawinto a Dart-friendlysnake_caseidentifier.