Rules for package names (pub's) and the names written into generated code.
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
-
idProblem(
String id) → String? -
Why
idcan't be a Dart package name (and so a package's id), or null if it can. -
isCategory(
String text) → bool -
Whether
textis a category id: lowercase words joined by-. -
isDottedIdentifier(
String text) → bool -
Whether
textis a Dart name, optionally dotted (MyPluginorMyPlugin.extension), and nothing else — so it can be written into generated code without letting anything else in. -
isId(
String id) → bool -
Whether
idis a valid package name. -
isWindowsDevice(
String name) → bool -
Whether
nameis one of Windows's device names (con,nul,com1…), which no file or folder there can be called.
Constants
- maxIdLength → const int
- The longest item id accepted.