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

Constructors

Names(String raw)
Creates snake_case, PascalCase, and camelCase variants from raw.

Properties

camel String
The normalized camelCase name.
final
hashCode int
The hash code for this object.
no setterinherited
pascal String
The normalized PascalCase name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snake String
The normalized snake_case name.
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 raw into a Dart-friendly camelCase identifier.
toPascalCase(String raw) String
Converts raw into a Dart-friendly PascalCase identifier.
toSnakeCase(String raw) String
Converts raw into a Dart-friendly snake_case identifier.