copyWith method

  1. @override
PageBlockDetails copyWith({
  1. RichText? header,
  2. List<PageBlock>? pageBlocks,
  3. bool? isOpen,
})
override

Implementation

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