cast<R> method

AsyncValue<R> cast<R>()

Casts the underlying value into a different type

Implementation

AsyncValue<R> cast<R>() => mapValue((value) => value as R);