EditRoomModalOptions class

Options for configuring the EditRoomModal widget.

This allows control over the modal's visibility, current room index, assigned/unassigned participants, and room participant management.

Example Usage:

final options = EditRoomModalOptions(
  editRoomModalVisible: ValueNotifier(false),
  updateEditRoomModalVisible: (visible) => toggleEditModal(visible),
  currentRoom: currentRoomParticipants,
  participantsRef: participantsList,
  handleAddParticipant: addParticipant,
  handleRemoveParticipant: removeParticipant,
  currentRoomIndex: 1,
);

Constructors

EditRoomModalOptions({required ValueNotifier<bool> editRoomModalVisible, required void updateEditRoomModalVisible(bool visible), required List<BreakoutParticipant>? currentRoom, required List<Participant> participantsRef, required void handleAddParticipant(int roomIndex, BreakoutParticipant participant), required void handleRemoveParticipant(int roomIndex, BreakoutParticipant participant), required int? currentRoomIndex, Color backgroundColor = const Color.fromARGB(255, 136, 171, 194)})

Properties

backgroundColor Color
Background color of the modal.
final
currentRoom List<BreakoutParticipant>?
The current breakout room being edited. Null if no room is selected.
final
currentRoomIndex int?
Index of the current room being edited. Null if no room is selected.
final
editRoomModalVisible ValueNotifier<bool>
Controls the visibility of the EditRoomModal.
final
handleAddParticipant → void Function(int roomIndex, BreakoutParticipant participant)
Callback to handle adding a participant to a room.
final
handleRemoveParticipant → void Function(int roomIndex, BreakoutParticipant participant)
Callback to handle removing a participant from a room.
final
hashCode int
The hash code for this object.
no setterinherited
participantsRef List<Participant>
Reference to all participants for assigning to rooms.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updateEditRoomModalVisible → void Function(bool visible)
Callback to update the visibility state of the EditRoomModal.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited