ZipItem<I1, I2>.fromList constructor
Null safety
- List list
Creates ZipItem from list of exactly 2
Implementation
factory ZipItem.fromList(List list) {
if (list.length != 2) {
throw ArgumentError('To create ZipItem list must be size two');
}
return ZipItem(list[0], list[1]);
}