switchVideo method Null safety

Future<void> switchVideo(
  1. {bool isOn = false}
)

switch local video on/off. ///just pass false or true to switchVideo

Implementation

Future<void> switchVideo({bool isOn = false}) async {
  return await PlatformService.invokeMethod(PlatformMethod.switchVideo,
      arguments: {'is_on': isOn});
}