-
-
Save kwalrath/3723fcf3915ca935d13393b8a9f86fd5 to your computer and use it in GitHub Desktop.
Callable object
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 WannabeFunction { | |
String call(String a, String b, String c) => '$a $b $c!'; | |
} | |
var wf = WannabeFunction(); | |
var out = wf('Hi', 'there,', 'gang'); | |
main() => print(out); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment