HMSPrebuilt constructor

HMSPrebuilt({
  1. Key? key,
  2. required String? roomCode,
  3. HMSPrebuiltOptions? options,
  4. Function? onLeave,
  5. String? authToken,
})

The key for the widget

Implementation

HMSPrebuilt(
    {super.key,
    required this.roomCode,
    this.options,
    this.onLeave,
    this.authToken}) {
  if (roomCode == null && authToken == null) {
    throw ArgumentError.notNull(
        "At least one parameter roomCode or authToken must be provided.");
  }
}