valid method
Implementation
bool valid() {
if (segments.isEmpty) {
return false;
}
for (AitSegment segment in segments) {
if (!segment.broken) {
return true;
}
}
return false;
}
bool valid() {
if (segments.isEmpty) {
return false;
}
for (AitSegment segment in segments) {
if (!segment.broken) {
return true;
}
}
return false;
}