Returns the contained Some value, consuming the this value.
this
Throw an error if the value is a None with a custom error message provided by msg.
msg
T expect(String msg) => isSome ? _someValue : throw UnwrapError(msg);