Tweet 1
Day_2 ---Dart Basics
#OperationVortex #Flutter #Dart
Did you know every onPressed in Flutter is a higher order function
ElevatedButton(
onPressed: () {
print("tapped");
},
)
You are not calling the function
you are passing it and Flutter decides when to run it