copyWith method
- List<
ImageStretch> ? stretchX, - List<
ImageStretch> ? stretchY, - ImageContent? content,
- StyleImageTextFit? textFitWidth,
- StyleImageTextFit? textFitHeight,
- double? pixelRatio,
- bool? sdf,
- 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,
);