FileHelper class

Constructors

FileHelper()

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 Properties

cwd → String
Returns the current working directory path.
no setter

Static Methods

createDir(String dirPath) → Future<void>
Creates a directory if it doesn't exist.
getProjectName() → String
Reads pubspec.yaml project name.
isFlutterProject() → bool
Check if we're inside a Flutter project (pubspec.yaml with flutter dep).
libPath(List<String> segments) → String
Joins path segments relative to current working directory.
writeFile(String filePath, String content, {bool force = false}) → Future<bool>
Writes content to filePath, creating parent dirs as needed. If force is false and file exists, it will be skipped.