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
}
Constructors
-
BulkChange(List<
ObsEvent> changes) -
Represents multiple observable events grouped together.
const
Properties
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