real_time_chart/lib/src/point.dart

16 lines
182 B
Dart
Raw Normal View History

2023-02-09 11:25:48 +01:00
class Point<T extends num> {
T x;
T y;
Point(this.x, this.y) {
this.x = x;
this.y = y;
}
@override
String toString() {
return 'Point{x: $x, y: $y}';
}
}