copyWith method
Implementation
@override
PageBlockDetails copyWith({
RichText? header,
List<PageBlock>? pageBlocks,
bool? isOpen,
}) => PageBlockDetails(
header: header ?? this.header,
pageBlocks: pageBlocks ?? this.pageBlocks,
isOpen: isOpen ?? this.isOpen,
);