contentOf method

Color contentOf(
  1. ColorScheme colorScheme
)

Implementation

Color contentOf(ColorScheme colorScheme) => switch (this) {
  info => colorScheme.onSurface,
  success => colorScheme.onSuccessContainer,
  warning => colorScheme.onWarningContainer,
  error => colorScheme.onErrorContainer,
};