build method
Builds the widget
Returns a ScreenController
widget
The ScreenController
is the main widget that renders the prebuilt
For more details checkout the ScreenController
class
It takes the roomCode,authToken, options and onLeave as parameters
The roomCode is the room code of the room to join
The authToken is the auth token to join the room
User need to pass either roomCode or authToken to join the room
The options are the options for the prebuilt
For more details checkout the HMSPrebuiltOptions class
The options are optional and are used to customize the prebuilt
The onLeave is the callback for the leave room button
Implementation
@override
Widget build(BuildContext context) {
return ScreenController(
roomCode: roomCode,
authToken: authToken,
options: options,
onLeave: onLeave,
);
}