answerCall static method

Future<void> answerCall(
  1. String accountId
)

Answer incoming call

Implementation

static Future<void> answerCall(String accountId) async {
  try {
    final call = _currentCalls[accountId];
    if (call == null) return;

    final listener = _listeners[accountId];
    if (listener?._helper == null) return;

    final options = listener!._helper!.buildCallOptions();
    call.answer(options);
    debugPrint('✅ Call answered for account: $accountId');
  } catch (e, stackTrace) {
    _printException('Answer Call', e, stackTrace);
  }
}