CustomPathService class
Custom path service that provides WASM-compatible path functionality without depending on dart:io or path_provider
Constructors
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
- pathSeparator → String
-
Get a platform-appropriate path separator
no setter
- supportsFileSystem → bool
-
Check if the current platform supports file system operations
no setter
Static Methods
-
getApplicationDocumentsDirectory(
) → Future< String> - Get the application documents directory path
-
getApplicationSupportDirectory(
) → Future< String> - Get the application support directory path
-
getDirectoryPath(
String filePath) → String - Get the directory path from a file path
-
getDownloadsDirectory(
) → Future< String> - Get the downloads directory path
-
getFileExtension(
String filePath) → String - Get the file extension from a file path
-
getFileName(
String filePath) → String - Get the file name from a file path
-
getFileNameWithoutExtension(
String filePath) → String - Get the file name without extension from a file path
-
getTemporaryDirectory(
) → Future< String> - Get the temporary directory path
-
isAbsolutePath(
String path) → bool - Check if a path is absolute
-
joinPaths(
List< String> paths) → String - Join path components using platform-appropriate separator
-
normalizePath(
String path) → String - Normalize a path by removing redundant separators and resolving relative components