IrImageAsset class

An image file, embedded so the document is self-contained.

Constructors

IrImageAsset({required String key, required String format, required double width, required double height, required Uint8List data})

Properties

data → Uint8List
final
format → String
png, jpeg, gif or svg.
final
hashCode → int
The hash code for this object.
no setterinherited
height → double
Logical size: pixels divided by the resolution variant's ratio.
final
isSvg → bool
no setter
key → String
The asset name, e.g. assets/logo.png.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → double
Logical size: pixels divided by the resolution variant's ratio.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(String key, Map<String, Object?> json) → IrImageAsset