PackageNames class abstract final

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 id can't be a Dart package name (and so a package's id), or null if it can.
isCategory(String text) → bool
Whether text is a category id: lowercase words joined by -.
isDottedIdentifier(String text) → bool
Whether text is a Dart name, optionally dotted (MyPlugin or MyPlugin.extension), and nothing else — so it can be written into generated code without letting anything else in.
isId(String id) → bool
Whether id is a valid package name.
isWindowsDevice(String name) → bool
Whether name is 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.