ok method

  1. @override
Option<T> ok()
override

Converts the Result into an Option containing the value, if any. Otherwise returns None if the result is an error.

Implementation

@override
Option<T> ok() => None<T>();