onMediaCommand property
Called when a media command is received from the notification or lock screen. Use this to handle next/previous track, or custom seek behavior.
Implementation
final void Function(AVMediaCommand command, {Duration? seekPosition})?
onMediaCommand;