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());