totalLayoverDuration property
Implementation
int get totalLayoverDuration {
if (flights == null) {
return 0;
}
int total = 0;
for (var f in flights!) {
total += f.layoverDuration ?? 0;
}
return total;
}
int get totalLayoverDuration {
if (flights == null) {
return 0;
}
int total = 0;
for (var f in flights!) {
total += f.layoverDuration ?? 0;
}
return total;
}