secondsToTime property

List<String> get secondsToTime

Implementation

List<String> get secondsToTime {
  int seconds = int.parse(this);
  var hour = seconds ~/ 3600;
  var minute = (seconds % 3600) ~/ 60;
  var second = (seconds % 3600) % 60;
  return [hour.toString(), minute.toString(), second.toString()];
}