isExceptionOfType method

bool isExceptionOfType(
  1. Type t
)

Se Failcontiene un eccezione e quell'eccezione รจ del tipo passato allora ritorna true, altrimenti false

Implementation

bool isExceptionOfType(Type t) =>
    fold((err) => false, (exc) => exc.runtimeType == t);