hasNext property

bool hasNext

Returns false if the wizard page is the last page.

Implementation

bool get hasNext {
  final routes = widget._controller.routes;
  if (routes.isEmpty) return false;
  final previous = widget._controller.currentRoute;
  final previousIndex = routes.keys.toList().indexOf(previous);
  return previousIndex < routes.length - 1;
}