toColorScheme property
Creates a ColorScheme based on the current semantic colors.
Implementation
ColorScheme get toColorScheme => ColorScheme(
brightness: primitives.brightness,
primary: mainPrimary,
onPrimary: mainPrimary.onColor,
secondary: mainSecondary,
onSecondary: mainSecondary.onColor,
error: mainNegative,
onError: mainNegative.onColor,
surface: surfaceDefault,
onSurface: mainDefault,
);