PlatformImage class
Native representation of an image.
Constructors
- PlatformImage(int width, int height, Uint8List pixels)
-
Creates a new
PlatformImage
object.const -
PlatformImage.fromJson(Map<
String, dynamic> json) -
Creates a
PlatformImage
object from a JSON map.factory
Properties
- hashCode → int
-
Calculates the hash code for this
PlatformImage
object.no setteroverride - height → int
-
The height of the image.
final
- pixels → Uint8List
-
The raw pixel data of the image.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → int
-
The width of the image.
final
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 -
Compares two
PlatformImage
objects for equality.override