cancel method
- required String logPath,
Cancels an ongoing upload for the specified log file.
The cancel request will trigger status updates via the
onLogStatusChanged callback passed to the LogUploader constructor.
Parameters
logPath: Path to the log file whose upload should be cancelled.
Returns
- A GemError indicating the result of the cancel request.
See also:
- upload — starts a new log upload.
Implementation
GemError cancel({required final String logPath}) {
final OperationResult resultString = objectMethod(
pointerId,
'LogUploader',
'cancel',
args: logPath,
);
return GemErrorExtension.fromCode(resultString['result']);
}