time property
String
get
time
Implementation
String get time {
if (widget.isReverse && _controller.isDismissed) {
if (widget.textFormat == ElapsedTimerTextFormat.MM_SS) {
return "00:00";
} else if (widget.textFormat == ElapsedTimerTextFormat.SS) {
return "00";
} else if (widget.textFormat == ElapsedTimerTextFormat.S) {
return "0";
} else {
return "00:00:00";
}
} else {
Duration duration = _controller.duration! * _controller.value;
return _getTime(duration);
}
}