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