Try adding a case clause for the missing constant, or adding a default clause.dartmissing_enum_constant_in_switch.
By Kristine Zemlak at Apr 27 2021