fulfillWithDateStarted method

Future<void> fulfillWithDateStarted(
  1. DateTime dateStarted
)

Reports the successful execution of the action at the specified time. A call is considered started when its invitation has been sent to the remote callee.

Implementation

Future<void> fulfillWithDateStarted(DateTime dateStarted) async {
  try {
    String method = 'fulfillWithDateStarted';
    await _methodChannel.invokeMethod(
      '$_ACTION.$method',
      {'uuid': uuid, 'dateStarted': dateStarted.toIso8601String()},
    );
    _FCXLog._i(runtimeType, method);
  } on PlatformException catch (e) {
    var exception = FCXException(e.code, e.message);
    _FCXLog._e(runtimeType, exception);
    throw exception;
  }
}