PathUtil class
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
Static Methods
-
basename(
String path) → String - 获取文件名称
-
dirname(
String path) → String - 获取目录名称
-
extension(
String path) → String - 获取文件扩展名
-
getUserDir(
{String? envName}) → String - 获取用户目录
-
join(
String part1, [String? part2, String? part3, String? part4]) → String - 获取路径
-
joinCwd(
String part1, [String? part2, String? part3, String? part4]) → String - 获取绝对路径
-
relative(
String path, {String? from}) → String - 获取相对地址