afterDelay method

Future afterDelay({
  1. dynamic function()?,
  2. int? milliseconds = 250,
})

Implementation

Future afterDelay({dynamic Function()? function, int? milliseconds = 250}) =>
    Future.delayed(Duration(milliseconds: milliseconds!), function);