Image class Null safety

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. [...]
read-only, inherited
height int
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
width int
read-only

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 non-existent 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