some property

Some<T> get some

Get the Some value or throw an error if it's None.

Implementation

Some<T> get some {
  try {
    return this as Some<T>;
  } catch (e) {
    throw Exception('Attempted to get Some from None: $e');
  }
}