Created
February 11, 2021 00:49
-
-
Save unacorbatanegra/77c43e9b8d898e7b92d7b75cf7733a72 to your computer and use it in GitHub Desktop.
Parameter Function
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 characters
void main() { | |
test(()=>print('called from a parameter')); | |
} | |
void test( Function onTap){ | |
print('called on a function'); | |
onTap(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment