BulkChange class

Represents multiple observable events grouped together.

This event is useful for batching changes, so instead of emitting multiple ValueChanged, ListChange, or MapChange events individually, you can group them into a single BulkChange.

Example

void main() {
  var events = [
    ValueChanged<int>(1, 2),
    ListChange.add(0, 'apple'),
    MapChange.put('key', null, 'value'),
  ];

  var bulk = BulkChange(events);

  print(bulk.changes.length); // 3
}
Inheritance

Constructors

BulkChange(List<ObsEvent> changes)
Represents multiple observable events grouped together.
const

Properties

changes List<ObsEvent>
The list of observable events batched into this bulk change.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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