SuccessCompletion typedef

SuccessCompletion = void Function(bool success, DocReaderException? error)

Callback for receiving answer from any function which does not return anything, but we need to know whether the function has succeeded or not.

success Indicates success status.

error in case success status is false - brief message for developer, null otherwise.

Implementation

typedef SuccessCompletion = void Function(
  bool success,
  DocReaderException? error,
);