position property

Future<Duration> get position

Implementation

Future<Duration> get position async {
  double result = await engineInstanceMethodChannel.invokeMethod("getCurrentPlaybackTime") ?? 0;
  return Duration(milliseconds: result.ceil());
}