ReaderTask<E, A>.asks constructor

ReaderTask<E, A>.asks(
  1. A f(
    1. E
    )
)

Extract a value A given the current dependency E.

Implementation

factory ReaderTask.asks(A Function(E) f) => ReaderTask(
      (env) async => f(env),
    );