list method
Returns the array of presences, with selected
metadata formatted according to the chooser
function.
See Example for better understanding and implementation details.
Implementation
List<dynamic> list(
Map<String, Presence> presences, [
dynamic Function(String, Presence)? chooser,
]) {
chooser = chooser ?? (k, v) => v;
return _map(presences, (k, v) => chooser!(k, v));
}