copyWith method

SpinnerEntity copyWith({
  1. String? key,
  2. bool? isRadio,
  3. bool? isShowButtons,
  4. String? title,
  5. MoreContentType? type,
  6. String? desc,
  7. RichText? titleRichText,
  8. dynamic extraData,
  9. List<SpinnerItemData>? items,
})

Implementation

SpinnerEntity copyWith({
  String? key,
  bool? isRadio,
  bool? isShowButtons,
  String? title,
  MoreContentType? type,
  String? desc,
  RichText? titleRichText,
  dynamic extraData,
  List<SpinnerItemData>? items,
}) =>
    SpinnerEntity(
      key: key ?? this.key,
      isRadio: isRadio ?? this.isRadio,
      isShowButtons: isShowButtons ?? this.isShowButtons,
      title: title ?? this.title,
      type: type ?? this.type,
      desc: desc ?? this.desc,
      titleRichText: titleRichText ?? this.titleRichText,
      items: items ?? this.items,
      extraData: extraData,
    );