removeObserver method
void
removeObserver(
- dynamic widget
Implementation
void removeObserver(dynamic widget) {
_notificationMap.forEach((key, value) {
value.removeWhere((element) => element.key == widget);
});
_notificationMap.removeWhere((key, value) => value.isEmpty);
}