toMap method
Converts these options to a map representation.
Implementation
Map<String, dynamic> toMap({bool android = false}) {
return {
'startIndex': startIndex,
'playPosition': playPosition.inSeconds,
'repeatMode': repeatMode.value,
'customData': customData,
};
}