I want to write a asynchronous function as a synchronous function without Future.then
and await
,
like Flutter File's delete api
new File(path).deleteSync();
But I do not know how to write.
Thank you.
I want to write a asynchronous function as a synchronous function without Future.then
and await
,
like Flutter File's delete api
new File(path).deleteSync();
But I do not know how to write.
Thank you.