StyleImageOptions constructor
- List<
ImageStretch> ? stretchX, - List<
ImageStretch> ? stretchY, - ImageContent? content,
- StyleImageTextFit? textFitWidth,
- StyleImageTextFit? textFitHeight,
- double? pixelRatio,
- bool? sdf,
- bool? keepUnused,
Implementation
StyleImageOptions({
List<ImageStretch>? stretchX,
List<ImageStretch>? stretchY,
this.content,
this.textFitWidth,
this.textFitHeight,
this.pixelRatio,
this.sdf,
this.keepUnused,
}) : stretchX = stretchX == null ? null : List.unmodifiable(stretchX),
stretchY = stretchY == null ? null : List.unmodifiable(stretchY);