WhiteRoom constructor
WhiteRoom({
- required RoomOptions options,
- required DsBridge dsBridge,
- RoomStateChangedCallback? onRoomStateChanged,
- RoomPhaseChangedCallback? onRoomPhaseChanged,
- RoomDisconnectedCallback? onRoomDisconnected,
- UndoStepsUpdatedCallback? onCanUndoStepsUpdate,
- RedoStepsUpdatedCallback? onCanRedoStepsUpdate,
- RoomKickedCallback? onRoomKicked,
- 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());
}