highContrastOf static method

bool highContrastOf(
  1. BuildContext context
)

Returns highContrast for the nearest MediaQuery ancestor or false, if no such ancestor exists.

See also:

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;