containsErr method

bool containsErr(
  1. E error
)

Returns true if isErr is true and if error equals error, otherwise returns false

Implementation

bool containsErr(E error) => isErr && _error == error;