copyWith method

WheelButton copyWith({
  1. LuckyLength? radius,
  2. bool? pointer,
  3. LuckyFill? background,
  4. List<LuckyText>? texts,
  5. 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);