SmfNames class abstract final

Rules for the names that the module model turns into Dart identifiers, route paths and template tags: module ids, role ids and socket names.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

dartString(String text) → String
Returns text as a single-quoted Dart string literal, such as 'It\'s here', that mason renders unchanged.
elementNumberOf(String name) → int
The number of name, a name in snake_case, where an element of the periodic table has its atomic number: how many characters the words of name have together, 5 for my_app. It goes with elementSymbolOf.
elementSymbolOf(String name) → String
The symbol of name, a name in snake_case such as the name of an app, as an element of the periodic table has one: Ma for my_app.
isDartIdentifier(String name) → bool
Whether name can name a variable, function or type in Dart: it has the form of an identifier and is not one of the reservedWords.
isSnakeCase(String name) → bool
Whether name is lower snake_case, such as firebase_core.
lowerCamelCase(String name) → String
Converts a snake_case name to lowerCamelCase: firebase_core becomes firebaseCore.
snakeCaseOf(String identifier) → String
Converts identifier, a camelCase Dart identifier made of letters and digits, to lower snake_case: HomeScreen becomes home_screen, userId becomes user_id and HTTPClient becomes http_client.
upperCamelCase(String name) → String
Converts a snake_case name to UpperCamelCase: firebase_core becomes FirebaseCore.

Constants

reservedWords → const Set<String>
The reserved words of Dart, which no identifier may be, plus await and yield, which cannot name anything inside asynchronous and generator functions.