isErrorWithCode function

bool isErrorWithCode(
  1. DeepLeafResponse response,
  2. String code
)

Implementation

bool isErrorWithCode(DeepLeafResponse response, String code) {
  return response is ErrorResponse && response.error.code == code;
}