WhiteRoom constructor

WhiteRoom({
  1. required RoomOptions options,
  2. required DsBridge dsBridge,
  3. RoomStateChangedCallback? onRoomStateChanged,
  4. RoomPhaseChangedCallback? onRoomPhaseChanged,
  5. RoomDisconnectedCallback? onRoomDisconnected,
  6. UndoStepsUpdatedCallback? onCanUndoStepsUpdate,
  7. RedoStepsUpdatedCallback? onCanRedoStepsUpdate,
  8. RoomKickedCallback? onRoomKicked,
  9. RoomErrorCallback? onRoomError,
})

Implementation

WhiteRoom({
  required this.options,
  required DsBridge dsBridge,
  this.onRoomStateChanged,
  this.onRoomPhaseChanged,
  this.onRoomDisconnected,
  this.onCanUndoStepsUpdate,
  this.onCanRedoStepsUpdate,
  this.onRoomKicked,
  this.onRoomError,
}) : super(dsBridge) {
  dsBridge.addJavascriptObject(createRoomInterface());
}