cancel method

GemError cancel({
  1. required String logPath,
})

Cancel an upload operation

Events about this operation are notified via the callback method given at LogUploader creation.

Parameters

  • IN logPath The path to the log file to upload

Returns

Throws

  • An exception if it fails.

Implementation

GemError cancel({required final String logPath}) {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'LogUploader',
    'cancel',
    args: logPath,
  );

  return GemErrorExtension.fromCode(resultString['result']);
}