StyleImageInfo constructor
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,
})
Implementation
StyleImageInfo({
this.width = 0,
this.height = 0,
Uint8List? pixels,
List<ImageStretch> stretchX = const [],
List<ImageStretch> stretchY = const [],
this.content,
this.textFitWidth,
this.textFitHeight,
this.pixelRatio = 0,
this.sdf = false,
this.keepUnused = false,
}) : pixels = Uint8List.fromList(
pixels ?? const <int>[],
).asUnmodifiableView(),
stretchX = List.unmodifiable(stretchX),
stretchY = List.unmodifiable(stretchY);