What do you want to save?
Add Code snippet
New code examples in category Dart
-
-
Lionel Aguero 2022-02-01 07:25:48
Try adding a case clause for the missing constant, or adding a default clause.dartmissing_enum_constant_in_switch.
// you can just use a default value, or you can add the other values inside the enum: switch(value) { case Enum1: // .... default: // do something here to avoid the error } Add solution
Best helpers
Tushar Diwan
+5
Pinakin
+5
I-love-php
+5
Sinow
+5
Saforrest
+5
Mastersulm
+5
Adam Clowes
+5
Any Mouse
+5