map<B> method

  1. @override
Task<B> map<B>(
  1. B f(
    1. A a
    )
)
override

Change the returning value of the Task from type A to type B using f.

Implementation

@override
Task<B> map<B>(B Function(A a) f) => ap(pure(f));