copyWith method
WheelBlockImage
copyWith({
- ImageProvider<
Object> ? image, - LuckyLength? top,
- LuckyLength? left,
- LuckyLength? width,
- LuckyLength? height,
- LuckyImageFormatter? formatter,
- double? borderRadius,
- double? opacity,
- ImageProvider<
Object> ? fallback, - String? semanticLabel,
- bool? rotate,
override
返回替换非 null 参数的副本,保留旋转设置。
Implementation
@override
WheelBlockImage copyWith(
{ImageProvider<Object>? image,
LuckyLength? top,
LuckyLength? left,
LuckyLength? width,
LuckyLength? height,
LuckyImageFormatter? formatter,
double? borderRadius,
double? opacity,
ImageProvider<Object>? fallback,
String? semanticLabel,
bool? rotate}) =>
WheelBlockImage(image ?? this.image,
top: top ?? this.top,
left: left ?? this.left,
width: width ?? this.width,
height: height ?? this.height,
formatter: formatter ?? this.formatter,
borderRadius: borderRadius ?? this.borderRadius,
opacity: opacity ?? this.opacity,
fallback: fallback ?? this.fallback,
semanticLabel: semanticLabel ?? this.semanticLabel,
rotate: rotate ?? this.rotate);