seconds property

List<SecondPeriod> seconds

Returns the list of seconds that are contained in this minute.

Implementation

List<SecondPeriod> get seconds {
  const generator = SecondGenerator();
  final seconds = <SecondPeriod>[];
  var last = generator.of(start);
  while (last.start.isBefore(end)) {
    seconds.add(last);
    last = generator.after(last);
  }
  return seconds;
}