BrightnessColor constructor Null safety

const BrightnessColor(
  1. {Color? dark,
  2. Color? light}
)

Implementation

const BrightnessColor({this.dark, this.light}) : assert(dark != null || light != null);