Op<T> class abstract

A generic operation that can be applied to a list of items T.

Used by HistoryManager to manage history, undo, redo, and merging.

Implementers

Constructors

Op()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply(List<T> current) → Op<T>
Applies this operation to the current list.
canMerge(Op<T> other) → bool
Checks if this operation can be merged with other.
merge(Op<T> other) → Op<T>
Merges this operation with other, returning a new operation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
revert(List<T> current) → Op<T>
Reverts this operation from the current list.
toString() → String
A string representation of this object.
inherited

Operators

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