onSeekRequest property
Called before performing a seek operation.
Return true to allow the seek, false to cancel it.
targetPosition is the position where the seek is requested.
Note: This callback is available only for videos that are not rendered inside a WebView.
Implementation
final bool Function(Duration targetPosition)? onSeekRequest;