createColorMode function

T Function<T>(T light, T dark) createColorMode(
  1. Brightness brightness
)

Implementation

T Function<T>(T light, T dark) createColorMode(Brightness brightness) {
  T colorMode<T>(T light, T dark) => switch (brightness) {
        Brightness.light => light,
        Brightness.dark => dark,
      };
  return colorMode;
}