Open mmcdon20 opened 3 weeks ago
If no one is working on it I would like to work on this issue
hey ! by types of functions we are talking about static , getter & setter , constructors , anonymous and lamda functions right ?
I was referring to the type declaration for a Function
.
int add(int a, int b) => a + b;
int Function(int, int) f = add;
In the above code, f
is the type int Function(int, int)
.
Hey ! I have submitted the PR .
Page URL
https://dart.dev/language/functions/
Page source
https://github.com/dart-lang/site-www/tree/main/src/content/language/functions.md
Describe the problem
The functions page doesn't explain
Function
type declarations.In contrast, the records page does explain record types for example.
Expected fix
Add some explanation about how to use
Function
type declarations. (Including defining return types, parameter types, etc).It might also be worth mentioning Function types on the built-in types page.
Additional context
No response
I would like to fix this problem.