Answers for "enum with string value dart"

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