shouldUseSemanticLabel static method

bool shouldUseSemanticLabel(
  1. BuildContext context
)

Implementation

static bool shouldUseSemanticLabel(BuildContext context) {
  return context
          .dependOnInheritedWidgetOfExactType<HeroIconTheme>()
          ?.useDefaultSemanticLabel ??
      false;
}