isLight property

bool isLight

true for Brightness.light, false otherwise.

Implementation

bool get isLight => this == Brightness.light;