highContrastOf static method
- 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.
Use of this method will cause the given context
to rebuild any time that
the MediaQueryData.highContrast property of the ancestor MediaQuery changes.
Implementation
static bool highContrastOf(BuildContext context) => maybeHighContrastOf(context) ?? false;