doesContainContiguous<T> static method
Implementation
static bool doesContainContiguous<T>(List<int> list) {
var sorted = list.toList()..sort();
for (var i = 0; i < sorted.length - 1; i++) {
if (sorted[i] + 1 != sorted[i + 1]) {
return false;
}
}
return true;
}