contains method
Returns true
if this
is a Some of the given value
.
Examples
// prints "true"
print(const Some(2).contains(2));
// prints "false"
print(const None<int>().contains(2));
Implementation
@override
@useResult
bool contains(T value) => value == this.value;