1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-05 22:37:42 +02:00

Change function's function param to correct syntax (#4065)

Ref: https://dart.dev/guides/language/sound-problems

Co-authored-by: ven <vendethiel@hotmail.fr>
This commit is contained in:
Ersin Ertan
2023-12-14 09:51:54 -05:00
committed by GitHub
parent e50a0fbacc
commit c5e7af574b

View File

@@ -79,7 +79,8 @@ example1() {
/// Anonymous functions don't include a name
example2() {
nested1(fn) {
//// Explicit return type.
nested1(void Function() fn) {
fn();
}
nested1(() => print("Example2 nested 1"));