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
textas 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 ofnamehave together, 5 formy_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:Maformy_app. -
isDartIdentifier(
String name) → bool -
Whether
namecan 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
nameis lower snake_case, such asfirebase_core. -
lowerCamelCase(
String name) → String -
Converts a snake_case
nameto lowerCamelCase:firebase_corebecomesfirebaseCore. -
snakeCaseOf(
String identifier) → String -
Converts
identifier, a camelCase Dart identifier made of letters and digits, to lower snake_case:HomeScreenbecomeshome_screen,userIdbecomesuser_idandHTTPClientbecomeshttp_client. -
upperCamelCase(
String name) → String -
Converts a snake_case
nameto UpperCamelCase:firebase_corebecomesFirebaseCore.
Constants
-
reservedWords
→ const Set<
String> -
The reserved words of Dart, which no identifier may be, plus
awaitandyield, which cannot name anything inside asynchronous and generator functions.