EncodedImageMessage class

An image input given as encoded bytes or a file path. The native side decodes it and resizes it to the feature's MLImageConstraint unless width, height or pixelFormatType override it.

Inheritance

Constructors

EncodedImageMessage({Uint8List? bytes, String? path, int? width, int? height, int? pixelFormatType})

Properties

bytes ↔ Uint8List?
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
height ↔ int?
getter/setter pair
path ↔ String?
getter/setter pair
pixelFormatType ↔ int?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width ↔ int?
getter/setter pair

Methods

encode() → Object
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

decode(Object result) → EncodedImageMessage