copyWith method

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

Implementation

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