setResumptionItem method
A stream of media actions emitted by the current platform. Saves the library item to resume (or clears it with null), kept while the app is closed.
Implementation
@override
Future<void> setResumptionItem(
MediaLibraryItem? item, Duration position) async {
if (defaultTargetPlatform != TargetPlatform.android) return;
await methodChannel.invokeMethod('setResumptionItem', {
'item': item?.toJson(),
'positionMs': position.inMilliseconds,
});
}