contains abstract method

  1. @useResult
bool contains(
  1. T value
)

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

@useResult
bool contains(T value);