AsyncTask<T> constructor

AsyncTask<T>({
  1. required Future func(
    1. T
    ),
  2. required T arg,
  3. dynamic onCancel()?,
})

Implementation

AsyncTask({required this.func, required this.arg, this.onCancel});