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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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