connect method

  1. @override
Future<bool?> connect({
  1. Map<String, dynamic>? extraOptions,
})
override

Places new call using raw parameters passed directly to Twilio's REST API endpoint 'makeCall'. Returns true if successful, false otherwise.

extraOptions will be added to the callPayload sent to your server

Implementation

@override
Future<bool?> connect({Map<String, dynamic>? extraOptions}) {
  _activeCall = ActiveCall(from: "", to: "", callDirection: CallDirection.outgoing);
  final options = {
    ...?extraOptions,
  };
  return _channel.invokeMethod('connect', options);
}