update method
Updates the Timer
Implementation
void update([int place = 1]) {
if (_watch != null) {
if (_isStart) {
var msg = '(${_watch!.elapsed.inSeconds}s)';
_lastMsg = msg;
Console.write(msg);
_isStart = false;
} else {
Console.moveCursorBack(_lastMsg.length);
var msg =
'(${(_watch!.elapsed.inMilliseconds / 1000).toStringAsFixed(place)}s)';
_lastMsg = msg;
Console.setBold(true);
Console.setTextColor(Color.GRAY.id);
Console.write(msg);
Console.setBold(false);
}
}
}