copyWith method
Create a copy of this operation with the given fields replaced with the new values.
Implementation
RetainOp copyWith({int? length, Map<String, dynamic>? attributes}) =>
RetainOp(
length ?? this.length,
attributes: attributes ?? this.attributes.asMap(),
);