fold<U, F> method
Invoke either the ok
or the err
function based on the result.
Implementation
@override
Result<U, F> fold<U, F>(U Function(T) ok, F Function(E) err) =>
Err(err(_err));
Invoke either the ok
or the err
function based on the result.
@override
Result<U, F> fold<U, F>(U Function(T) ok, F Function(E) err) =>
Err(err(_err));