UtilPath class

UtilPath 路径工具类

Constructors

UtilPath()

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

getFileNameWithoutSuffix(String fileName) String
获取文件名(不含后缀) 如:'example.txt' -> 'example'
getFileNameWithSuffix(String fileName) String
获取文件名(含后缀) 如:'/path/to/example.txt' -> 'example.txt'
getFileSuffix(String fileName) String?
获取文件后缀名 不包含点号(.),如:'txt'、'png'