boldTextOverride method Null safety

bool boldTextOverride(
  1. BuildContext context
)

Returns the boldText accessibility setting for the nearest MediaQuery ancestor, or false if no such ancestor exists.

Implementation

static bool boldTextOverride(BuildContext context) {
  return MediaQuery.maybeOf(context)?.boldText ?? false;
}