WitsFile class
图片处理
Constructors
- WitsFile()
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
-
readTempFile(
{required String fileName}) → Future< Uint8List> - 读临时目录的文件信息
-
saveImage(
{required Uint8List imageBytes, int quality = 100, required String fileName}) → FutureOr - 保存图片到相册
-
saveNetImage(
{required String url, int quality = 100, String? fileName}) → FutureOr - 保存网络图片到相册
-
saveNetMedia(
{required String url, String? fileName}) → FutureOr - 从网络保存PNG、JPG、JPEG图像或视频保存到本地设备媒体图库
-
saveTempFile(
{required List< int> bytes, required String fileName}) → Future<File> - 保存文件到临时目录