isDark property

bool get isDark

Implementation

bool get isDark => (this ?? Colors.transparent).computeLuminance() < 0.5;