Diff class final

Represents a diff between two arrays.

Create a diff between arrays of QueryResultItems using a Differ.

Annotations
  • @external

Constructors

Diff({required Set<int> insertions, required Set<int> deletions, required Set<int> updates, required Set<DiffMove> moves})
Diff.fromCbor(Uint8List cborBytes)
factory

Properties

deletions → Set<int>
The set of indexes in the old array at which items were deleted.
final
hashCode → int
The hash code for this object.
no setterinherited
insertions → Set<int>
The set of indexes in the new array at which items were inserted.
final
moves → Set<DiffMove>
A set of DiffMoves, each representing a move of an item from a particular index in the old array to a particular index in the new array.
final
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
updates → Set<int>
The set of indexes in the new array at which items have been updated.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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