StyleImageInfo constructor

StyleImageInfo({
  1. int width = 0,
  2. int height = 0,
  3. Uint8List? pixels,
  4. List<ImageStretch> stretchX = const [],
  5. List<ImageStretch> stretchY = const [],
  6. ImageContent? content,
  7. StyleImageTextFit? textFitWidth,
  8. StyleImageTextFit? textFitHeight,
  9. double pixelRatio = 0,
  10. bool sdf = false,
  11. 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);