copyWith method
InputPageBlockCollage
copyWith({
- List<
InputPageBlock> ? blocks, - PageBlockCaption? caption()?,
override
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
@override
InputPageBlockCollage copyWith({
List<InputPageBlock>? blocks,
PageBlockCaption? Function()? caption,
}) => InputPageBlockCollage(
blocks: blocks ?? this.blocks,
caption: caption != null ? caption() : this.caption,
);