toMap method
Converts these seek options to a map representation.
Implementation
Map<String, dynamic> toMap() {
return {
'position': position.inSeconds,
'relative': relative,
'resumeState': resumeState.index,
'seekToInfinity': seekToInfinity,
};
}