thenCast<R> method

FutureOr<R?> thenCast<R>()

Implementation

FutureOr<R?> thenCast<R>() => thenOr((self) => self as R?);