copyWith method

StyleImageOptions copyWith({
  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,
})

A copy of this value with the given members replaced.

Implementation

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