cleanWhiteBoard method

  1. @override
Future<void> cleanWhiteBoard({
  1. bool shouldEmit = true,
})
override

Implementation

@override
Future<void> cleanWhiteBoard({bool shouldEmit = true}) async {
  if (roomId == null) return;

  _localPaints.clear();
  _remotePaints.clear();
  _cachedPaints.clear();

  if (shouldEmit) _socketEmiter.cleanWhiteBoard(roomId!);
  _emitWhiteBoard();
}