canHandle method

bool canHandle(
  1. Object errorCatch
)

Checks if the error handler can handle the error by runtimeType.

Implementation

bool canHandle(final Object errorCatch) =>
    errorTypes.any((errorType) => errorType == errorCatch.runtimeType);