addChangeNotifier method

VoidCallback addChangeNotifier(
  1. ChangeNotifier changeNotifier, {
  2. required VoidCallback onChange,
})

Implementation

VoidCallback addChangeNotifier(ChangeNotifier changeNotifier,
        {required VoidCallback onChange}) =>
    addSubscription((removeSubscription) {
      changeNotifier.addListener(onChange);
      return () => changeNotifier.removeListener(onChange);
    });