type property

MatcherType get type

Implementation

MatcherType get type {
  if (success != null) {
    return MatcherType.success;
  }
  if (errorType != null) {
    return MatcherType.error;
  }
  if (inputOutput != null) {
    return MatcherType.inputOutput;
  }
  if (output != null) {
    return MatcherType.output;
  }
  throw StateError('Unknown matcher type: $this');
}