ThemeColors.baseOf constructor

ThemeColors.baseOf(
  1. bool isDarkMode,
  2. ThemeData theme
)

Implementation

factory ThemeColors.baseOf(bool isDarkMode, ThemeData theme) {
  final x = _kDefault.detect(isDarkMode);
  return ThemeColors.of(_kBase, isDarkMode).defaults(
    primary: theme.colorScheme.primary,
    secondary: theme.colorScheme.secondary,
    tertiary: theme.colorScheme.tertiary,
    light: x.light,
    dark: x.dark,
    mid: x.mid,
    error: x.error,
  );
}