fail method

Future<void> fail()

Reports the failed execution of the action.

Implementation

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