ThemedColor constructor Null safety

const ThemedColor(
  1. {required Color light,
  2. required Color dark}
)

Create a themed color for each of the variants.

Defines light as color to be used in Theme with Brightness.light. Defines dark as color to be used in Theme with Brightness.dark.

Implementation

const ThemedColor({
  required Color light,
  required Color dark,
})  : _light = light,
      _dark = dark;