andThen<C> method

  1. @override
TaskOption<C> andThen<C>(
  1. covariant TaskOption<C> then()
)
override

If running this TaskOption returns Some, then return the result of calling then. Otherwise return None.

Implementation

@override
TaskOption<C> andThen<C>(covariant TaskOption<C> Function() then) =>
    flatMap((_) => then());