why Future<void> don't work properly when we set it as static

Viewed 31

I have a method, when I normally call it without setting it to static, it works fine

But when I declare that future to static like :

static Future<main> method() {
 \\... 
 }

Ut doesn't work, it throws an error Why, and what exactly the problem

0 Answers
Related