hasErrorOf<ET> method

bool hasErrorOf<ET>()

returns true if hasError and error type is ET

Implementation

bool hasErrorOf<ET>() => hasError && error is ET;