isSome property

  1. @override
bool get isSome
override

Whether this option is Some.

const option = Some<int>(1);
final hasValue = option.isSome; // true

Implementation

@override
bool get isSome => true;