InsertObjectOp class

A Quill delta operation that inserts an object.

For the purposes of other operations, the length of an insert object operation is always considered to be one.

Inheritance
Annotations

Constructors

InsertObjectOp(String type, Map<String, dynamic>? value, {Map<String, dynamic>? attributes})
Create an insert operation that inserts an object.

Properties

attributes → BuiltMap<String, Object>
Additional attributes that might affect how this object is displayed.
final
hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
type String
The type of the object. This value is used to determine how the object is parsed and displayed.
final
value → BuiltMap<String, Object>
Value of the object in JSON format.
final

Methods

copyWith({String? type, Map<String, Object>? value, Map<String, Object>? attributes}) InsertObjectOp
Create a copy of this operation with the given fields replaced with the new values.
deconstruct<S>({required S insert(String, BuiltMap<String, dynamic>), required S insertObject(String, Object, BuiltMap<String, dynamic>), required S retain(int, BuiltMap<String, dynamic>), required S delete(int)}) → S
Execute a function depending on the type of this operation.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.

Operators

operator ==(Object other) bool
The equality operator.
inherited