match<W> abstract method
W
match<W>({
- required W ok(
- S
- required W err(
- F
Returns the result of ok
for the encapsulated value
if this instance represents Ok or the result of err
function
for the encapsulated value if it is Err.
Implementation
W match<W>({required W Function(S) ok, required W Function(F) err});