fromList<T> static method
List constructor.
Implementation
static Tuple4<T, T, T, T> fromList<T>(List<T> list) {
if (list.length != 4) {
throw ArgumentError.value(
list, 'list', 'Expected list of length 4, but got ${list.length}');
}
return Tuple4(list[0], list[1], list[2], list[3]);
}