copyWith method

  1. @override
InputPageBlockDetails copyWith({
  1. RichText? header,
  2. List<InputPageBlock>? blocks,
  3. 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,
);