Flutter – How to get the variable name as String value in dart
String foodIcon = 'assets/icons/expense/food.png'; I want to receive the foodIcon variable name as a String value ('foodIcon') I saw a StackOverflow answer for a similar question that says to use a map or dictionary. Is there any method to do…