FLUTTER INTERVIEW QUESTIONS
What is a (fat)arrow syntax in Dart?
=> expression
1 min readDec 19, 2019
For functions that contain just one expression, you can use short version with => that basically does {return expression;}
void main() {
function1(1); //arg was not 3
function2(1); //arg was not 3 function1(3); //arg was 3
function2(3)…