ListModification<E> class

A single atomic modification on a ListEmitter. Can be an insert, a remove or replace at a particular index.

Constructors

ListModification(int index, E remove, E insert)
ListModification.insert(int index, E insert)
ListModification.remove(int index, E remove)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int
The index at which the modification ocurred.
final
insert → E
The value inserted at the index if any.
final
isInsert bool
Whether the modification is an insert operation.
final
isRemove bool
Whether this is a remove operation.
final
isReplace bool
Whether the modification is both insert and remove.
read-only
remove → E
The value removed at index if any.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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