isActivePage static method

bool isActivePage(
  1. String? currentPage,
  2. ActionModel? action
)

Implementation

static bool isActivePage(String? currentPage, ActionModel? action) {
  if (action is GotoPage) {
    return action.pageID == currentPage;
  }
  return false;
}