resolve<T> method

T resolve<T>(
  1. T light,
  2. T dark
)

Resolves the given colors based on the current brightness.

Implementation

T resolve<T>(T light, T dark) {
  if (isDark) return dark;
  return light;
}