You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changes on ObservableMap and ObservableList objects created via cast or castFrom mutate the original collections but do not trigger notifications on the original collections.
final original =ObservableList<int>.from([1, 2, 3]);
original.changes.listen(print); // Listener never triggered.final cast = original.cast<num>();
cast.add(4);
print(original); // Prints [1, 2, 3, 4].awaitFuture(() {}); // Flush any microtasks.
The text was updated successfully, but these errors were encountered:
Changes on
ObservableMap
andObservableList
objects created viacast
orcastFrom
mutate the original collections but do not trigger notifications on the original collections.The text was updated successfully, but these errors were encountered: