FileService class
Service responsible for file operations including path manipulation, validation, and file system abstractions.
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
-
extractBasename(
String path) → String - Extracts the basename without extension from a file path
-
extractPath(
String fullPath) → String - Extracts the directory path from a full file path
-
getExtension(
String path) → String - Gets the file extension from a path
-
isAbsolute(
String path) → bool - Checks if a path is absolute
-
joinPath(
List< String> components) → String - Joins multiple path components into a single path
-
normalizePath(
String path) → String - Normalizes a file path by resolving relative components and redundant separators
-
validatePath(
String path) → void - Validates that a path is valid and accessible
Constants
- instance → const FileService