Image class

Implemented types

Constructors

Image.borrowed(int nativeHandle)
Wraps a handle owned elsewhere; releasing it stays the owner's job.
Image.fromHandle(int nativeHandle)
Adopts a handle returned by the C API and releases it when this object becomes unreachable.

Properties

format → String?
no setter
hashCode → int
The hash code for this object.
no setterinherited
nativeHandle → int
The underlying handle-table entry.
final
nativeObject → Pointer<Void>
Platform-specific native object behind this handle.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → Size
no setter

Methods

dispose() → void
Releases the handle now instead of at collection.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveToFile(String filePath) → bool
toBase64() → String?
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromBase64(String base64Data) → Image?
fromFile(String filePath) → Image?