HMSPrebuilt constructor
HMSPrebuilt({
- Key? key,
- required String? roomCode,
- HMSPrebuiltOptions? options,
- Function? onLeave,
- 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.");
}
}