setDirection method

void setDirection(
  1. NavPagesDirection direction
)

Sets the direction for the navigation pages.

This method updates the direction for the navigation pages using the NavPagesDirection enum.

The direction parameter should be a NavPagesDirection enum.

Implementation

void setDirection(NavPagesDirection direction) {
  setState(() {
    _direction = direction;
  });
}