I want to perform a method after a delay in flutter, and I came across Future.delayed method, but the method was being called immediately without a delay.
I tried the following:
Future.delayed(const Duration(milliseconds: 300), method());
I want to perform a method after a delay in flutter, and I came across Future.delayed method, but the method was being called immediately without a delay.
I tried the following:
Future.delayed(const Duration(milliseconds: 300), method());
Copyright © 2021 Jogjafile Inc.
Maybe you should increase the duration because 300 milliseconds is 0.3 seconds so you won't notice the delay, try 3000s instead