Skip to content

Instantly share code, notes, and snippets.

@unacorbatanegra
Created February 11, 2021 00:49
Show Gist options
  • Save unacorbatanegra/77c43e9b8d898e7b92d7b75cf7733a72 to your computer and use it in GitHub Desktop.
Save unacorbatanegra/77c43e9b8d898e7b92d7b75cf7733a72 to your computer and use it in GitHub Desktop.
Parameter Function
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