From 1cc1a5768e2447710d67dde0e2123aaca3ac2909 Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 26 Sep 2022 12:15:24 -0600 Subject: [PATCH] add map() functionality to listenable list --- lib/utilities/listenable_list.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/utilities/listenable_list.dart b/lib/utilities/listenable_list.dart index 5838c0f51..ef07478aa 100644 --- a/lib/utilities/listenable_list.dart +++ b/lib/utilities/listenable_list.dart @@ -52,4 +52,8 @@ class ListenableList extends ChangeNotifier { notifyListeners(); } } + + Iterable map(E Function(T) toElement) { + return _list.map(toElement); + } }