Skip to content

Instantly share code, notes, and snippets.

@mashiro
Created June 7, 2018 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mashiro/f295337a3993f4e18c5349a6bd3924cf to your computer and use it in GitHub Desktop.
Save mashiro/f295337a3993f4e18c5349a6bd3924cf to your computer and use it in GitHub Desktop.
import "./point.dart";
import "./print.dart";
void main() {
var p = new Point(1, 2);
printPoint(p);
}
class Point {
num x;
num y;
Point(this.x, this.y);
}
import "./point.dart";
void printPoint(Point p) {
print("Point: (${p.x}, ${p.y})");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment