singleOrOption method
Returns the single element of an iterator, None if this is empty or has more than one element.
Implementation
@pragma('vm:prefer-inline')
Option<T> singleOrOption() => Option.from(singleOrNull);
Returns the single element of an iterator, None if this is empty or has more than one element.
@pragma('vm:prefer-inline')
Option<T> singleOrOption() => Option.from(singleOrNull);