callBackWhenVideoEnd method
void
callBackWhenVideoEnd({
- required dynamic onVideoEnd()?,
Implementation
void callBackWhenVideoEnd({
required Function()? onVideoEnd,
}) {
controller.addJavaScriptHandler(
handlerName: 'onVideoEnd',
callback: (args) {
onVideoEnd?.call();
return null;
},
);
}