callBackWhenVideoSeek method
Implementation
void callBackWhenVideoSeek({
required Function(double currentTime)? onVideoSeek,
}) {
controller.addJavaScriptHandler(
handlerName: 'onVideoSeek',
callback: (args) {
final currentTime = args.first as double;
onVideoSeek?.call(currentTime);
return null;
},
);
}