Skip to content

Instantly share code, notes, and snippets.

@aruld
Created October 19, 2011 17:22
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 aruld/1299000 to your computer and use it in GitHub Desktop.
Save aruld/1299000 to your computer and use it in GitHub Desktop.
Dart noSuchMethod construct
class Printer {
Printer(this.address);
noSuchMethod(String name, List args) {
print("not implemented.");
}
var address;
}
main() {
var p = new Printer("10.0.0.5:1234");
var doc = "Test Print";
p.print(doc);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment