import 'package:tuple/tuple.dart'; class Point extends Tuple2 { Point(x, y) : super(x, y); Point operator +(Point other) { return Point(item1 + other.item1, item2 + other.item2); } }