err method

Future<Option<E>> err()

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

Implementation

Future<Option<E>> err() => then((result) => result.err());