ProjectNameResolver class

Resolves and sanitizes Dart package names according to Flutter/Dart package conventions.

Constructors

ProjectNameResolver()
const

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
resolve({required String rawTarget, String? overrideName, Directory? currentDirectory}) → String
Resolves the intended package name for a target directory or argument.
sanitize(String name) → String
Sanitizes an arbitrary string into a valid, lowercase Dart package name.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

reservedKeywords → const Set<String>
Reserved Dart language keywords that cannot be used as package names.