toMap method

Map<String, dynamic> toMap({
  1. bool android = false,
})

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,
  };
}