wa_tools
library
Classes
-
ConvertSize
-
A utility class for converting file sizes from bytes to human-readable format.
-
QueryString
-
A utility class for parsing query strings into a Map.
-
TString
-
Class representing a translatable string.
Properties
-
pathApp
→ String
-
Retrieves the base directory path of the application.
no setter
Functions
-
endpointNorm(List<String> paths, {bool normSlashs = true, dynamic endWithSlash = true, dynamic startWithSlash = true})
→ String
-
-
joinPaths(List<String> paths)
→ String
-
Joins a list of paths into a single normalized path string.
-
pathNorm(String path, {bool? normSlashs, dynamic endWithSlash = false})
→ String
-
Normalizes a given
path
by removing leading slashes and optionally converting
backslashes to forward slashes.
-
pathsEqual(List<String> paths, {bool normSlashs = true, dynamic endWithSlash = true, dynamic startWithSlash = true})
→ bool
-
check the paths are equal or not
-
pathTo(String path)
→ String
-
Normalizes and joins a given
path
with the application base directory path.