executeLongTaskInBackground static method
Implementation
static Future<void> executeLongTaskInBackground() async {
if (kDebugMode) {
print("starting long task");
}
await Future.delayed(const Duration(seconds: 4));
final url = Uri.parse("http://google.com");
// ignore: unused_local_variable
final re = await http.get(url);
if (kDebugMode) {
print("long task done");
}
}