Change the returning value of the Task from type A to type B using f.
A
B
f
@override Task<B> map<B>(B Function(A a) f) => ap(pure(f));