insert method

void insert(
  1. dynamic data, [
  2. Map<String, dynamic>? attributes
])

Insert data at current position.

Implementation

void insert(dynamic data, [Map<String, dynamic>? attributes]) {
  if (data is String && data.isEmpty) return; // no-op
  push(Operation.insert(data, attributes));
}