StyleImageOptions constructor

StyleImageOptions({
  1. List<ImageStretch>? stretchX,
  2. List<ImageStretch>? stretchY,
  3. ImageContent? content,
  4. StyleImageTextFit? textFitWidth,
  5. StyleImageTextFit? textFitHeight,
  6. double? pixelRatio,
  7. bool? sdf,
  8. 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);