isSome property

bool get isSome

Whether this option is Some.

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

Implementation

bool get isSome;