isTargetClickable method

bool isTargetClickable(
  1. GlobalKey<State<StatefulWidget>> key
)

Returns whether the given target key should allow touch-through. Defaults to true when not specified.

Implementation

bool isTargetClickable(GlobalKey key) {
  if (targetClickables == null) return true;
  return targetClickables![key] ?? true;
}