AsyncTask<R> typedef Null safety

AsyncTask<R> = FutureOr<R>? Function()

An async task that completes with a Future or a value.

Implementation

typedef AsyncTask<R> = FutureOr<R>? Function();