menu
flutter_enhancer package
documentation
list/to_map.dart
ToMap extension
ToMap extension
dark_mode
light_mode
ToMap<
T
>
extension
on
List
<
T
>
Methods
toMap
<
E
>
(
E
mapper
(
T
element
)
)
→
Map
<
T
,
E
>
Available on
List
<
T
>
, provided by the
ToMap
extension
Converts the list into a map where each element of the list is a key, and the value is generated by applying the
mapper
function to each element.
flutter_enhancer package
documentation
list/to_map
ToMap extension
to_map library