getCurrentTime method
Get current position.
Implementation
Future<Duration> getCurrentTime() async {
getCurrentTimeCompleter = Completer<Duration>();
await webViewController.evaluateJavascript(
source: 'getCurrentTime();',
);
final time = await getCurrentTimeCompleter?.future;
return time ?? Duration.zero;
}