handler method

ErrorHandler<T> handler({
  1. bool report = false,
  2. bool shouldRethrow = false,
})

returns an ErrorHandlerX

Implementation

ErrorHandler<T> handler({
  bool report = false,
  bool shouldRethrow = false,
}) {
  return ErrorHandler(
    this,
    report: report,
    shouldRethrow: shouldRethrow,
  );
}