focusHighlightOf static method

  1. @useResult
bool focusHighlightOf(
  1. BuildContext context
)

Returns FAccessibility.focusHighlight of the nearest FAccessibilityScope in the given context.

It is recommended to use the terser FAccessibilityContext.focusHighlight getter instead.

Implementation

@useResult
static bool focusHighlightOf(BuildContext context) =>
    InheritedModel.inheritFrom<_Accessibility>(context, aspect: _Aspect.focusHighlight)!.data.focusHighlight;