lastModified property

DateTime get lastModified

Implementation

DateTime get lastModified {
  var time = DateTime.fromMillisecondsSinceEpoch(0);

  for (final file in files) {
    final modified = file.lastModifiedSync();
    if (modified.isAfter(time)) {
      time = modified;
    }
  }

  return time;
}