ShareEventModalOptions class

Configuration for the share-event modal displaying meeting ID, passcode (admin-only), and social sharing.

  • roomName - Meeting ID displayed via MeetingIdComponent (shareable string for joining).
  • adminPasscode - Meeting passcode displayed via MeetingPasscodeComponent; only shown when islevel == '2'.
  • shareButtons - Toggles ShareButtonsComponent (social share icons).
  • islevel - Privilege level; '2' = host (passcode visible), others see passcode as hidden.
  • eventType - EventType enum; passed to ShareButtonsComponent for context-aware share text.
  • localLink - Optional custom URL for sharing (defaults to room link).
  • position - Modal placement via getModalPosition (e.g., 'topRight').
  • backgroundColor - Background color for modal container.
  • styles - Optional ShareEventModalStyleOptions for advanced theming (width, height, borders, spacing).
  • title / passcodeSection / meetingIdSection / shareButtonsSection - Custom widget replacements for sections.
  • headerBuilder / passcodeBuilder / meetingIdBuilder / shareButtonsBuilder / bodyBuilder / contentBuilder / containerBuilder - Builder hooks for granular customization; each receives context object with default* widget and metadata.

Usage

  1. Modal displays three sections: MeetingPasscodeComponent (admin-only), MeetingIdComponent (always), ShareButtonsComponent (if shareButtons == true).
  2. MeetingIdComponent shows roomName with copy-to-clipboard button.
  3. MeetingPasscodeComponent shows adminPasscode with copy button (admin-only).
  4. ShareButtonsComponent renders social icons (Twitter, Facebook, Email, WhatsApp, Telegram, Clipboard) using eventType for share text.
  5. Positions via getModalPosition using options.position.
  6. Override via MediasfuUICustomOverrides.shareEventModal to inject branded sharing templates, deep-link generation, or analytics tracking.

Constructors

ShareEventModalOptions.new({Color backgroundColor = const Color.fromRGBO(131, 192, 233, 0.25), required bool isShareEventModalVisible, required VoidCallback onShareEventClose, bool shareButtons = true, String position = 'topRight', required String roomName, required String adminPasscode, required String islevel, EventType eventType = EventType.webinar, String? localLink, ShareEventModalStyleOptions? styles, Widget? title, Widget? passcodeSection, Widget? meetingIdSection, Widget? shareButtonsSection, ShareEventModalHeaderBuilder? headerBuilder, ShareEventModalPasscodeBuilder? passcodeBuilder, ShareEventModalMeetingIdBuilder? meetingIdBuilder, ShareEventModalShareButtonsBuilder? shareButtonsBuilder, ShareEventModalBodyBuilder? bodyBuilder, ShareEventModalContentBuilder? contentBuilder, ShareEventModalContainerBuilder? containerBuilder})

Properties

adminPasscode String
final
backgroundColor Color
final
bodyBuilder ShareEventModalBodyBuilder?
final
containerBuilder ShareEventModalContainerBuilder?
final
contentBuilder ShareEventModalContentBuilder?
final
eventType EventType
final
hashCode int
The hash code for this object.
no setterinherited
headerBuilder ShareEventModalHeaderBuilder?
final
islevel String
final
isShareEventModalVisible bool
final
final
meetingIdBuilder ShareEventModalMeetingIdBuilder?
final
meetingIdSection Widget?
final
onShareEventClose VoidCallback
final
passcodeBuilder ShareEventModalPasscodeBuilder?
final
passcodeSection Widget?
final
position String
final
roomName String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shareButtons bool
final
shareButtonsBuilder ShareEventModalShareButtonsBuilder?
final
shareButtonsSection Widget?
final
styles ShareEventModalStyleOptions?
final
title Widget?
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