hold method

Future<void> hold(
  1. bool enable
)

Puts the call on/off hold.

enable - True if the call should be put on hold, false for unhold

Throws VIException, if an error occurred.

Errors:

Implementation

Future<void> hold(bool enable) async {
  try {
    await _channel.invokeMethod<void>('Call.holdCall',
        <String, dynamic>{'callId': _callId, 'enable': enable});
  } on PlatformException catch (e) {
    throw VIException(e.code, e.message);
  }
}