copyWith method

PageBlockListItem copyWith({
  1. String? label,
  2. List<PageBlock>? blocks,
  3. bool? hasCheckbox,
  4. bool? isChecked,
  5. int? value,
  6. String? type,
})

Implementation

PageBlockListItem copyWith({
  String? label,
  List<PageBlock>? blocks,
  bool? hasCheckbox,
  bool? isChecked,
  int? value,
  String? type,
}) =>
    PageBlockListItem(
      label: label ?? this.label,
      blocks: blocks ?? this.blocks,
      hasCheckbox: hasCheckbox ?? this.hasCheckbox,
      isChecked: isChecked ?? this.isChecked,
      value: value ?? this.value,
      type: type ?? this.type,
    );