showCallkitIncoming function

Future<void> showCallkitIncoming(
  1. String uuid,
  2. String roomName, {
  3. Map<String, dynamic>? data,
})

Implementation

Future<void> showCallkitIncoming(
  String uuid,
  String roomName, {
  Map<String, dynamic>? data,
}) async {
  await Future.delayed(const Duration(seconds: 2), () async {
    var params = MappingModelHelper.mapCallKitParams(uuid: uuid, roomName: roomName, data: data);
    showLogI('VIDEO CALL =======>: $FlutterCallkitIncoming.showCallkitIncoming');
    if (params != null) {
      await FlutterCallkitIncoming.showCallkitIncoming(params);
    }
  });
}