setToken method

Future<void> setToken(
  1. String? token
)

Set the token used for playing the video.

Implementation

Future<void> setToken(String? token) async {
  if (_isNeedDisposed) return;
  await _initPlayer.future;
  await _mc!.invoke<void>('setToken', {'value': token});
}