• Adam Barth's avatar
    Strengthen animation listener iteration patterns (#7566) · 0f1d9775
    Adam Barth authored
    This patch aligns the iteration patterns used by animations and
    ChangeNotifier. They now both respect re-entrant removal of listeners
    and coalesce duplication registrations. (Also, ChangeNotifier
    notification is no longer N^2).
    
    This patch introduces ObserverList to avoid the performance regression that the
    previous version of this patch caused.
    
    Fixes #7533
    0f1d9775
observer_list.dart 1.24 KB