unwrapOrOption method

  1. @override
Option<S> unwrapOrOption()
override

Converts a Result into an Option, returning Some if the Result is Ok, and _None if the Result is Err. Note: This should not be used to determine is Ok or is Err, since when the success type is nullable, a null is ambiguous in meaning.

Implementation

@override
@pragma("vm:prefer-inline")
Option<S> unwrapOrOption() => None;