onMediaCommand property

void Function(AVMediaCommand command, {Duration? seekPosition})? onMediaCommand
final

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;