screenShare method

Future<void> screenShare()

Implementation

Future<void> screenShare() async {
  setting.addListener(() {
    if (Platform.isAndroid) {
      if (setting.isStart) {
        _startService();
        EnxRtc.startScreenShare();
      } else {
        EnxRtc.stopScreenShare();
        _stopService();
      }
    }
  });
}