opposite property

Brightness get opposite

The opposite Brightness — light becomes dark and vice versa.

Implementation

Brightness get opposite => isDark ? Brightness.light : Brightness.dark;