resolve<T> method
T
resolve<T>(
- T light,
- 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;
}