pure<B> method

Task<B> pure<B>(
  1. B b
)

Implementation

Task<B> pure<B>(B b) => new Task(() => new Future.value(b));