replay method

Future<void> replay()

重新播放最后一次播放的视频

Implementation

Future<void> replay() async {
  if (_lastPath != null && _lastSourceType != null) {
    await play(path: _lastPath!, sourceType: _lastSourceType!);
  }
}