int timechanger = 10;
Duration countDown = Duration(hours: timechanger);
I am trying to reduce the time with my current time So I have to give a time limit dynamically I have tried this but it shoes error
int timechanger = 10;
Duration countDown = Duration(hours: timechanger);
I am trying to reduce the time with my current time So I have to give a time limit dynamically I have tried this but it shoes error
Just put the static keyword in front of the timechanger.
static int timechanger = 10;
Duration countDown = Duration(hours: timechanger);