hasFailureCode function

Matcher hasFailureCode(
  1. String code
)

Матчер: ошибка с ожидаемым стабильным кодом (Failure.code).

expect(failure, hasFailureCode('http.unauthorized'));

Implementation

Matcher hasFailureCode(String code) =>
    isA<Failure>().having((f) => f.code, 'code', code);