currentPosition method

Future<double?> currentPosition()

Retrieves the current playback position in seconds.

Returns the position as a double representing the time in seconds, or null if an error occurs.

Implementation

Future<double?> currentPosition() async {
  return ByteArkPlayerControllerPlatform.instance.currentPosition();
}