containsError<E extends SampleException> method
return true if the same errorCode
which match first
Implementation
core.bool containsError<E extends SampleException>([String? errorCode]) {
return whereError<E>(errorCode) != null;
}