getCurrentPosition method

  1. @override
Future<double> getCurrentPosition()
override

Get current audio position in seconds.

Implementation

@override
Future<double> getCurrentPosition() async {
  final result =
      await methodChannel.invokeMethod<double>('getCurrentPosition');
  return result ?? 0.0;
}