add map() functionality to listenable list

This commit is contained in:
julian 2022-09-26 12:15:24 -06:00
parent 2d643d1987
commit 1cc1a5768e

View file

@ -52,4 +52,8 @@ class ListenableList<T> extends ChangeNotifier {
notifyListeners();
}
}
Iterable<E> map<E>(E Function(T) toElement) {
return _list.map(toElement);
}
}