of method Null safety
- BuildContext context
The visible of the closest instance of this class that encloses the
given context. Defaults to true
if none are found.
Implementation
static bool of(BuildContext context) {
final _TooltipVisibilityScope? visibility = context.dependOnInheritedWidgetOfExactType<_TooltipVisibilityScope>();
return visibility?.visible ?? true;
}