boldTextOverride method

bool boldTextOverride (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.of(context, nullOk: true)?.boldText ?? false;
}