class Pair { Pair({ required this.first, required this.second, }); T first; R second; } class Triple { Triple({ required this.first, required this.second, required this.third, }); T first; R second; S third; }