copyWith method

WheelBlock copyWith({
  1. double? padding,
  2. LuckyFill? background,
  3. List<WheelBlockImage>? images,
})

返回替换非 null 参数的副本。

Implementation

WheelBlock copyWith(
        {double? padding,
        LuckyFill? background,
        List<WheelBlockImage>? images}) =>
    WheelBlock(
        padding: padding ?? this.padding,
        background: background ?? this.background,
        images: images ?? this.images);