dropdownMap method
Implementation
Future<Map<T, String>> dropdownMap(
BuildContext context, {
int page = 0,
int size = 20,
Map<String, String> extraParams = const <String, String>{},
bool forceOffline = false,
}) async =>
(await list(
context,
page: page,
size: size,
extraParams: extraParams,
forceOffline: forceOffline,
))
.asMap()
.map((_, T item) => MapEntry<T, String>(item, item.dropdownText));