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 path if it doesn't exist.
createFile(String path, String content) → void
Creates a file at the given path with the provided content.
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 diPath to register a new usecase.