Answers for "dart with string convert to enum"

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