mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-23 11:04:33 +00:00
add map() functionality to listenable list
This commit is contained in:
parent
2d643d1987
commit
1cc1a5768e
1 changed files with 4 additions and 0 deletions
|
@ -52,4 +52,8 @@ class ListenableList<T> extends ChangeNotifier {
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Iterable<E> map<E>(E Function(T) toElement) {
|
||||||
|
return _list.map(toElement);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue