useFocusWithin function

bool? useFocusWithin(
  1. GlobalNodeKey<Element> target, {
  2. bool enabled = true,
})

Returns whether focus is on target or one of its descendants.

Implementation

bool? useFocusWithin(GlobalNodeKey<web.Element> target, {bool enabled = true}) {
  return use(_FocusWithinHook(target, enabled));
}