I've this variables to extract the time from DateTime.now();
DateTime date = DateTime.now();
String time = "${date.hour}:${date.minute}:${date.second}";
The problem is if the time for example is 01:09:32, the time that i get is 1:9:32.
How do i get the time with the regular format?
I can do this with if-else, but i'm sure there is a better way