ThemeColors.of constructor

ThemeColors.of(
  1. String name,
  2. bool isDarkMode
)

Implementation

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