matchOk<R> method

Future<R?> matchOk<R>(
  1. R okop(
    1. T
    )
)

Invokes the okop if the result is Ok, otherwise does nothing.

Implementation

Future<R?> matchOk<R>(R Function(T) okop) =>
    then((result) => result.matchOk(okop));