Last active
May 9, 2017 22:43
-
-
Save zidenis/337e22e8f32079463f6569b33da3d7a1 to your computer and use it in GitHub Desktop.
Revisions
-
zidenis revised this gist
May 9, 2017 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,7 @@ void main() { var prettyFunc = new PrettyPrint(); print(prettyFunc is Function); // true prettyFunc.call("A", "Dart is cool", "B"); // A Dart is cool B prettyFunc("C", "Dart is cool", "D"); // C Dart is cool D var args = ["E", "Dart is cool", "F"]; // E Dart is cool F -
zidenis created this gist
May 9, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ void main() { var prettyFunc = new PrettyPrint(); print(prettyFunc is Function); // true prettyFunc.call("A", "Dart is cool", "B"); // A Dart is cool B prettyFunc("C", "Dart is cool", "D"); // C Dart is cool D var args = ["E", "Dart is cool", "F"]; // E Dart is cool F Function.apply(prettyFunc, args); } class PrettyPrint { call(prefix, msg, sufix) => print("$prefix $msg $sufix"); }