copyWith method

OrgBlock copyWith({
  1. String? indent,
  2. String? header,
  3. OrgNode? body,
  4. String? footer,
  5. String? trailing,
  6. String? id,
})

Implementation

OrgBlock copyWith({
  String? indent,
  String? header,
  OrgNode? body,
  String? footer,
  String? trailing,
  String? id,
}) =>
    OrgBlock(
      indent ?? this.indent,
      header ?? this.header,
      body ?? this.body,
      footer ?? this.footer,
      trailing ?? this.trailing,
      id ?? this.id,
    );