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
InputPageBlockListItem copyWith({
List<InputPageBlock>? blocks,
bool? hasCheckbox,
bool? isChecked,
int? value,
String? type,
}) => InputPageBlockListItem(
blocks: blocks ?? this.blocks,
hasCheckbox: hasCheckbox ?? this.hasCheckbox,
isChecked: isChecked ?? this.isChecked,
value: value ?? this.value,
type: type ?? this.type,
);