isShowcaseOnTop function

bool isShowcaseOnTop(
  1. BuildContext context
)

Whether nothing covers the navigator of the demo, such as a sheet in the root navigator. True outside a ShowcaseNavigator. Not exported: the pages use it to tell whether they are on screen.

Implementation

bool isShowcaseOnTop(BuildContext context) =>
    context.dependOnInheritedWidgetOfExactType<_ShowcaseNavigatorScope>()?.isOnTop ?? true;