containsError method
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;
}
Returns true
if the result is an `error`
value containing the given value.
bool containsError(E err) {
if (_error.val != null) {
return _Error(val: err) == _error;
}
return false;
}