onStartCall function

Future<void> onStartCall(
  1. dynamic _callId,
  2. CallModel? data, {
  3. required String status,
  4. String? where,
})

Implementation

Future<void> onStartCall(_callId, CallModel? data, {required String status, String? where}) async {
  appCallBloc.add(CallStatusEvent(callId: _callId!, status: status));
  final params = CallKitParams(
    id: currentuuid,
    nameCaller: data?.name,
    handle: data?.dialerId.toString(),
    type: data?.callType == "video" ? 1 : 0,
  );
  await FlutterCallkitIncoming.startCall(params);
}