factory ThemeGradients.of(String name, bool isDarkMode) { final x = ColorTheme._i?._gradients[name]?.detect(isDarkMode); if (x != null) return x; return const ThemeGradients(); }