forward method

Future<void> forward()

Implementation

Future<void> forward() async {
  int position = (_currentPosition ?? 0) + 10000;
  if (_totalDuration != null) {
    if (position > (_totalDuration ?? 0)) {
      position = _totalDuration!;
    }
  }
  try {
    await methodChannel.invokeMethod(Constant.METHOD_SEEK_TO, position);
  } on PlatformException catch (_) {}
}