copyWith method
InputPageBlockDetails
copyWith({
- RichText? header,
- List<
InputPageBlock> ? blocks, - bool? isOpen,
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
InputPageBlockDetails copyWith({
RichText? header,
List<InputPageBlock>? blocks,
bool? isOpen,
}) => InputPageBlockDetails(
header: header ?? this.header,
blocks: blocks ?? this.blocks,
isOpen: isOpen ?? this.isOpen,
);