some<T> static method
Asserts option is Some and returns its value.
Implementation
static T some<T>(Option<T> option, {String? reason}) => option.match(
some: (T value) => value,
none: () =>
throw AuthAssertionError(reason ?? 'expected Some but got None'),
);