disconnect method

Future<Either<ScreenMeetError, bool>> disconnect()

Implementation

Future<Either<ScreenMeetError, bool>> disconnect() async {
  _keepOnTakingScreenShots = false;
  final Map result = await _channel.invokeMethod(_pm.kDisconnectCommand);

  if (_pm.isSuccess(result)) { return Right(true);}
  return Left(_pm.error(result));
}