isSome method

bool isSome()

Returns true if the option is a Some value.

Implementation

@pragma("vm:prefer-inline")
bool isSome() {
  return this != null;
}