containsError method

bool containsError(
  1. E err
)

Returns true if the result is an `error` value containing the given value.

Implementation

bool containsError(E err) {
  if (_error.val != null) {
    return _Error(val: err) == _error;
  }

  return false;
}