showCallOverlay function

void showCallOverlay(
  1. BuildContext context, {
  2. String? callId,
})

显示音视频通话弹窗

Implementation

void showCallOverlay(BuildContext context, { String? callId }) {
  _initCallOverlay(callId: callId);

  final overlay = Overlay.maybeOf(context, rootOverlay: true);
  if (overlay == null) return;
  overlay.insert(_callOverlayEntry!);
}