fulfill method

Future<void> fulfill()

Reports the successful execution of the action.

Implementation

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