sortedCategories function
Map<String, List<M3uGenericEntry> >
sortedCategories({
- required List<
M3uGenericEntry> entries, - required String attributeName,
- String defaultAttribute = 'other',
From a list of categories return them organized by a property
entries
all the entries from the response
attributeName
name of the attribute to merge for
defaultAttribute
when the attribute is not found category
to merge properties.
Implementation
Map<String, List<M3uGenericEntry>> sortedCategories(
{required List<M3uGenericEntry> entries,
required String attributeName,
String defaultAttribute = 'other'}) =>
PlaylistHelper.sortedCategories(
entries: entries,
attributeName: attributeName,
defaultAttribute: defaultAttribute);