onRemoteBoardChanged method
Implementation
@override
void onRemoteBoardChanged(List<DrawModel> paints, DrawActionEnum action) {
switch (action) {
case DrawActionEnum.updateAdd:
_remotePaints.addAll(paints);
_emitWhiteBoard();
break;
case DrawActionEnum.updateRemove:
_remotePaints.removeWhere((element) => paints.contains(element));
_emitWhiteBoard();
break;
default:
break;
}
}