containsError<E extends SampleException> method

bool containsError<E extends SampleException>([
  1. String? errorCode
])

return true if the same errorCode which match first

Implementation

core.bool containsError<E extends SampleException>([String? errorCode]) {
  return whereError<E>(errorCode) != null;
}