Operation.insert constructor

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

Creates operation which inserts text with optional attributes.

Implementation

factory Operation.insert(dynamic data, [Map<String, dynamic>? attributes]) =>
    Operation(Operation.insertKey, data is String ? data.length : 1, data,
        attributes);