updateWhiteBoard method

  1. @override
Future<void> updateWhiteBoard(
  1. DrawModel draw,
  2. DrawActionEnum action
)
override

Implementation

@override
Future<void> updateWhiteBoard(
  DrawModel draw,
  DrawActionEnum action,
) async {
  if (roomId == null) return;

  _cachedPaints.add(draw);
  _localPaints.add(draw);

  _socketEmiter.updateWhiteBoard(roomId!, action.action, draw);
  _emitWhiteBoard();
}