nullableHighContrast property
bool?
nullableHighContrast
Returns whether high contrast mode is enabled for the nearest MediaQuery ancestor or null if no such ancestor exists.
Implementation
bool? get nullableHighContrast => MediaQuery.maybeHighContrastOf(this);