copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
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,
);