none property

None<T> get none

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

Implementation

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