getPosition method
Gets the video position as Duration from the start.
Implementation
@override
Future<Duration> getPosition(int? textureId) async {
int? position = await (_channel.invokeMethod<int>(
'position',
<String, dynamic>{'textureId': textureId},
));
return Duration(
milliseconds: position!,
);
}