copyWith method

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

Implementation

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