With the 1.2.0 release of the Flutter package supercharged I introduced some handy DateTime and Duration features.

You can easily work with more natural Duration objects like 30.seconds or 250.milliseconds . You can also add them together: var duration = 1.minutes + 30.seconds; .

Especially when you are working with animations (for example when using simple_animations) these natural durations makes your code look great.

But they are also great for computing DateTime objects:

var future = 2.days.fromNow() + 5.minutes;