rspec/rules/S107/dart/struct-example.adoc
2024-08-23 17:09:43 +02:00

14 lines
199 B
Plaintext

[source,dart]
----
class Point { // In geometry, Point is a logical structure to group data
int x;
int y;
Point(this.x, this.y);
}
void setCoordinates(Point p1, Point p2) {
// ...
}
----