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