getMaxPhotos static method
Returns the maximum number of photos taken on a single Sol from a list of SolDay objects
Implementation
static int getMaxPhotos(List<SolDay> days) {
return days
.map((d) => d.totalPhotos)
.reduce((a, b) => a > b ? a : b); // Finding the maximum photo count
}