highContrastOf method Null safety
- BuildContext context
Returns highContrast for the nearest MediaQuery ancestor or false, if no such ancestor exists.
See also:
- MediaQueryData.highContrast, which indicates the platform's desire to increase contrast.
Implementation
static bool highContrastOf(BuildContext context) {
return MediaQuery.maybeOf(context)?.highContrast ?? false;
}