retain method

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

Retain count of characters from current position.

Implementation

void retain(int count, [Map<String, dynamic>? attributes]) {
  assert(count >= 0);
  if (count == 0) return; // no-op
  push(Operation.retain(count, attributes));
}