sendTone method

Future<void> sendTone(
  1. String key
)

Sends DTMFs in the call.

DTMFs can be sent only if the call is connected.

key - DTMFs

Implementation

Future<void> sendTone(String key) async {
  try {
    await _channel.invokeMethod<void>('Call.sendToneForCall',
        <String, String?>{'callId': _callId, 'tone': key});
  } on PlatformException catch (e) {
    throw VIException(e.code, e.message);
  }
}