duration property

Duration duration
final

Duration for which timer should be shown.

When isIncremental is true then duration will be act as end time when the timer should stop.

Info: Show sale time like below so it wont reset when app state changes.

Duration(
 milliseconds: DateTime.parse("2022-09-07 13:27:00")
 .difference(DateTime.now())
 .inMilliseconds,
)

Implementation

final Duration duration;