Flutter / Dart Convert Int to Enum January 31, 2023 by Tarik int idx = 2; print(ThemeColor.values[idx]); should give you ThemeColor.blue