ModernPermissionsModalOptions constructor

ModernPermissionsModalOptions({
  1. required bool isPermissionsModalVisible,
  2. required VoidCallback onPermissionsClose,
  3. required List<Participant> participants,
  4. required String member,
  5. required String islevel,
  6. Socket? socket,
  7. required String roomName,
  8. ShowAlert? showAlert,
  9. PermissionConfig? permissionConfig,
  10. void updatePermissionConfig(
    1. PermissionConfig
    )?,
  11. Color? backgroundColor,
  12. String position = 'topRight',
  13. bool isDarkMode = true,
  14. bool enableGlassmorphism = true,
  15. bool enableGlow = true,
  16. ModalRenderMode renderMode = ModalRenderMode.modal,
  17. String? audioSetting,
  18. String? videoSetting,
  19. String? screenshareSetting,
  20. String? chatSetting,
})

Implementation

ModernPermissionsModalOptions({
  required this.isPermissionsModalVisible,
  required this.onPermissionsClose,
  required this.participants,
  required this.member,
  required this.islevel,
  this.socket,
  required this.roomName,
  this.showAlert,
  this.permissionConfig,
  this.updatePermissionConfig,
  this.backgroundColor,
  this.position = 'topRight',
  this.isDarkMode = true,
  this.enableGlassmorphism = true,
  this.enableGlow = true,
  this.renderMode = ModalRenderMode.modal,
  this.audioSetting,
  this.videoSetting,
  this.screenshareSetting,
  this.chatSetting,
});