Created
October 19, 2011 17:22
-
-
Save aruld/1299000 to your computer and use it in GitHub Desktop.
Dart noSuchMethod construct
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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