wantsMobileToolbarToBeVisible static method

bool wantsMobileToolbarToBeVisible([
  1. Finder? superReaderFinder
])

Returns true if SuperReader's policy believes that a mobile toolbar should be visible right now, or false otherwise.

This inspection is different from isMobileToolbarVisible in a couple ways:

Implementation

static bool wantsMobileToolbarToBeVisible([Finder? superReaderFinder]) {
  // TODO: add Android support
  final toolbarManager = find.state<SuperReaderIosToolbarOverlayManagerState>(superReaderFinder);
  if (toolbarManager == null) {
    throw Exception(
        "Tried to verify that SuperReader wants mobile toolbar to be visible, but couldn't find the toolbar manager widget.");
  }

  return toolbarManager.wantsToDisplayToolbar;
}