Answers for "convert string to enum flutter"

0

dart enum from string

Fruit f = Fruit.values.firstWhere((e) => e.toString() == 'Fruit.' + str);
Posted by: Guest on April-08-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language