colorScheme method
Implementation
ColorScheme colorScheme() {
ColorScheme scheme = mode == ThemeMode.light
? const ColorScheme.light()
: const ColorScheme.dark();
return scheme.copyWith(
background: background,
primary: primary,
onBackground: foreground,
outline: border,
secondary: secondary,
shadow: shadow,
);
}