AsyncTask<T> constructor
AsyncTask<T> ({
- required Future func(
- T
- required T arg,
- dynamic onCancel()?,
Implementation
AsyncTask({required this.func, required this.arg, this.onCancel});