CometChatCallScreenBuilder typedef
CometChatCallScreenBuilder =
Widget Function(CometChatCallDetails callDetails)
Builder for a custom call screen.
Receives the callDetails. When a custom screen is provided, the
plugin delegates full control to it — the consumer is responsible for:
- Accepting or rejecting the call (via CometChatPushNotifications.endCall or their own media engine).
- Dismissing the call notification using CometChatPushNotifications.cancelCallNotification.
- Popping the call screen when done.
The CometChatNotificationConfig.onCallAccepted / CometChatNotificationConfig.onCallDeclined callbacks only apply to the default call screen.
Implementation
typedef CometChatCallScreenBuilder =
Widget Function(CometChatCallDetails callDetails);