0
Have a similar question here (referring to javascript) but I believe that there are different characteristics in the implementation with Dart
.
Example in Dart:
void main() {
printName(() => { //ex:1
print('nome1'),
print('nome2'),
});
printName(() { //ex:2
print('nome3');
print('nome4');
});
}
printName(Function printNames) {
printNames();
}
In the first example the expression lambda com arrow function
the commands are 'delimited' by comma, the compiler interprets the two in the same way or has some difference?