Utils class
A utility class containing helper methods for string manipulation and file operations.
Constructors
- Utils()
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
-
addDependencies(
) → void - Adds necessary Flutter dependencies to the project using 'flutter pub add'.
-
createDir(
String path) → void -
Creates a directory at the given
pathif it doesn't exist. -
createFile(
String path, String content) → void -
Creates a file at the given
pathwith the providedcontent. -
isInitialized(
) → bool - Checks if the project is initialized with core layers.
-
pascal(
String text) → String - Converts a string to PascalCase.
-
snake(
String text) → String - Converts a string to snake_case.
-
updateDi(
String diPath, String name, String feature) → void -
Updates the Dependency Injection (DI) file at
diPathto register a new usecase.