Operation.retain constructor

Operation.retain(
  1. int? length, [
  2. Map<String, dynamic>? attributes
])

Creates operation which retains length of characters and optionally applies attributes.

Implementation

factory Operation.retain(int? length, [Map<String, dynamic>? attributes]) =>
    Operation._(Operation.retainKey, length, '', attributes);