place method

Future<bool?> place({
  1. required String from,
  2. required String to,
  3. Map<String, dynamic>? extraOptions,
})

Places new call

extraOptions will be added to the callPayload sent to your server

Implementation

Future<bool?> place(
    {required String from,
    required String to,
    Map<String, dynamic>? extraOptions}) {
  _activeCall =
      ActiveCall(from: from, to: to, callDirection: CallDirection.outgoing);

  var options = extraOptions ?? Map<String, dynamic>();
  options['From'] = from;
  options['To'] = to;
  return _channel.invokeMethod('makeCall', options);
}