ImageUtil class

Constructors

ImageUtil.new()

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

base64StringToMemoryImage(String base64String) MemoryImage
Converts a base64-encoded string to a MemoryImage.
fromBase64(String base64String) Uint8List
Decodes a base64-encoded string to a Uint8List.
getImageFromPhone({bool camera = false}) Future<MemoryImage?>
Retrieves an image from the device's camera or gallery, optionally cropping it, and returns a MemoryImage.
memoryImageToBase64(MemoryImage memoryImage) String
Encodes a MemoryImage to a base64-encoded string.
toBase64(Uint8List data) String
Encodes a Uint8List to a base64-encoded string.