resolve method

ChromaTheme resolve({
  1. required bool hasDarkBackground,
})

Selects the appropriate theme based on background.

Implementation

ChromaTheme resolve({required bool hasDarkBackground}) {
  return hasDarkBackground ? dark : light;
}