Image class

Constructors

Image(Uint8List encodedBytes)
Image.fromBase64(String encodedImage)
factory
Image.fromDecodedImage(Image image)
factory
Image.fromFile(File imageFile)
factory
Image.fromFilePath(String filePath)
factory
Image.fromJson(Map<String, dynamic> json)
factory

Properties

content String
final
encodedBytes Uint8List
final
hashCode int
The hash code for this object.
no setterinherited
height int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
no setter

Methods

copyCrop(int x, int y, int w, int h) Image
drawLine(int x1, int y1, int x2, int y2, Color color, {bool antialias = false, num thickness = 1}) → void
drawString(int x, int y, String text, {Color color = const Color.rgb(0, 0, 0)}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override
writeAsJpeg(String filePath) Future<void>

Operators

operator ==(Object other) bool
The equality operator.
inherited