copyWith method

RetainOp copyWith({
  1. int? length,
  2. Map<String, dynamic>? attributes,
})

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(),
    );