copyWith method

InsertOp copyWith({
  1. String? text,
  2. Map<String, Object>? attributes,
})

Create a copy of this operation with the given fields replaced with the new values.

Implementation

InsertOp copyWith({String? text, Map<String, Object>? attributes}) =>
    InsertOp(text ?? this.text,
        attributes: attributes ?? this.attributes.asMap());