highContrastOf method Null safety

bool highContrastOf(
  1. BuildContext context
)

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

See also:

Implementation

static bool highContrastOf(BuildContext context) {
  return MediaQuery.maybeOf(context)?.highContrast ?? false;
}