ImageUtils class
图片工具类
Constructors
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
-
assetImageToBase64(
String path) → Future - 将asset图片转化为base64
-
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
-
base64ToImage(
String base64String) → MemoryImage - 将base64流转化为图片
-
base64ToUnit8list(
String base64String) → Uint8List - 将base64流转化为Uint8List对象
-
fileToBase64(
File imgFile) → String - 将图片file转化为base64