MagpieFileUtils class

Constructors

MagpieFileUtils()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

baseFilePath String
final
tag String
final

Static Methods

clearFileData({String fileName, String dirName}) Future<Null>
清除文件中的数据
getFilePath({String fileName, String dirName}) Future<String>
获取文件路径
isExistsFile({String fileName, String dirName}) Future<bool>
判断文件是否存在
readFile({String fileName, String dirName}) Future<String>
从文件中读书数据
rmFile({String fileName, String dirName}) Future<Null>
删除文件
writeFile({String fileName, String contents, String dirName}) Future<Null>
文件中写入数据