Skip to content

Instantly share code, notes, and snippets.

@adibpwd
Last active August 19, 2020 11:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adibpwd/4d4f891c989f7f1f55f226fdc58166d0 to your computer and use it in GitHub Desktop.
Save adibpwd/4d4f891c989f7f1f55f226fdc58166d0 to your computer and use it in GitHub Desktop.
highorderfunction.dart
void main() {
print('hello world');
void myHigherOrderFunction(String message, (9, 9));
}
// coba 1
// void myHigherOrderFunction(String message,Function printLambda = (int a, int b) {
// print('This is lambda function');
// }) {
// print(message);
// print(myFunction(3, 4));
// }
// coba 2
// void myHigherOrderFunction(String message, (int num1, int num2) {
// return num1 + num2;
// }{
// print(message);
// print(myFunction(3, 4));
// }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment