previewVideo method Null safety

Future<void> previewVideo(
  1. {required HMSConfig config}
)

preview before joining the room pass HMSConfig.

Implementation

Future<void> previewVideo({required HMSConfig config}) async {
  return await PlatformService.invokeMethod(PlatformMethod.previewVideo,
      arguments: config.getJson());
}