StyleImageInfo class final

An image in the map's style.

See mln_style_image_info in the C API reference.

Constructors

StyleImageInfo({int width = 0, int height = 0, Uint8List? pixels, List<ImageStretch> stretchX = const [], List<ImageStretch> stretchY = const [], ImageContent? content, StyleImageTextFit? textFitWidth, StyleImageTextFit? textFitHeight, double pixelRatio = 0, bool sdf = false, bool keepUnused = false})

Properties

content → ImageContent?
final
hashCode → int
The hash code for this object.
no setterinherited
height → int
final
keepUnused → bool
final
pixelRatio → double
final
pixels → Uint8List
The premultiplied RGBA pixels, in rows of width * 4 bytes, from the top row down.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sdf → bool
final
stretchX → List<ImageStretch>
final
stretchY → List<ImageStretch>
final
textFitHeight → StyleImageTextFit?
final
textFitWidth → StyleImageTextFit?
final
width → int
final

Methods

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.
inherited