HotList<Key, Event, DecisionRecord, Record> mixin

Implements the updating (actualization) of individual list entries.

Superclass constraints

Properties

actualizeCompleter Completer<void>?
Completer to indicate that the list is being actualized.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
hotListEventSubscription StreamSubscription<HotListChanges<Record, Key>>?
Subscribing for changes in the data source.
getter/setter pair
isListClosed bool
Indicates that the closeList function has been called.
getter/setter pairinherited
replaceOperationId int
The identifier of the current list.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

closeList() → void
Stops all processes in the list controller.
override
convertDecisionRecords(Set<DecisionRecord> records) FutureOr<Iterable<Record>>
The function should convert the list of DecisionRecord into a list of Record
expandHotListEvents(List<Event> events) FutureOr<RecordUpdates<DecisionRecord, Key>>
Converts an Event notification list into an RecordUpdates object containing the lists of created, updated and deleted entries.
filterHotListRecords(RecordUpdates<DecisionRecord, Key> change) HotListChanges<DecisionRecord, Key>
Decides which records should be removed from the list and which should be added.
getDecisionRecordKey(DecisionRecord record) → Key
Must return unique key for the Raw object
hasListRecord(Key key) bool
The function should tell if the current list contains a record with the unique identifier Key.
initHotList(Stream<Event> changes) → void
Must be called in the constructor
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordFits(DecisionRecord record) bool
The function should tell if the record is suitable for being added to the list.
resetController() → void
Interrupts all processes occurring in the list controller: of loading and updating records.
inherited
stopHotList() → void
Stops processing changes in the data source.
toString() String
A string representation of this object.
inherited
updateHotList(HotListChanges<Record, Key> changes) → void
Called when the list of records needs to be modified.
waitAllLoadsToComplete() Future<void>
Returns Future, which completes either immediately if there are no other loads, or upon completion of all loads.
inherited

Operators

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