Essayez d'ajouter une clause de cas pour la constante manquante ou d'ajouter une clause par défaut.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
}
loonix