resolve static method

dynamic resolve(
  1. Brightness brightness
)

Implementation

static resolve(Brightness brightness) =>
    brightness.isLight ? LightOverlay() : DarkOverlay();