m3u_nullsafe library
Classes
- M3uGenericEntry
- An entry on a Playlist it can be a simple entry, without attributes, or an entry with custom attributes.
- M3uParser
- A parser of M3U documents.
Enums
- InvalidFormatType
- Supported types of invalid format exceptions.
Functions
-
parseFile(
String source) → Future< List< M3uGenericEntry> > -
Parse a document represented by the
source
-
sortedCategories(
{required List< M3uGenericEntry> entries, required String attributeName, String defaultAttribute = 'other'}) → Map<String, List< M3uGenericEntry> > -
From a list of categories return them organized by a property
entries
all the entries from the responseattributeName
name of the attribute to merge fordefaultAttribute
when the attribute is not found category to merge properties.
Exceptions / Errors
- InvalidFormatException
- Exception thrown when an error occurs due to invalid Header format of a file.