getCurrentPage method

Widget? getCurrentPage()

Implementation

Widget? getCurrentPage() {
  if (currentModule == null) return null;

  final currentStack = pageStacks[currentModule];
  if (currentStack == null || currentStack.isEmpty) return null;

  return currentStack.last;
}