copyWith method
WheelButton
copyWith({
- LuckyLength? radius,
- bool? pointer,
- LuckyFill? background,
- List<
LuckyText> ? texts, - List<
LuckyImage> ? images,
返回仅替换非 null 参数的副本。
Implementation
WheelButton copyWith(
{LuckyLength? radius,
bool? pointer,
LuckyFill? background,
List<LuckyText>? texts,
List<LuckyImage>? images}) =>
WheelButton(
radius: radius ?? this.radius,
pointer: pointer ?? this.pointer,
background: background ?? this.background,
texts: texts ?? this.texts,
images: images ?? this.images);