getHeaderControllerFor method

SwayzeHeaderController getHeaderControllerFor({
  1. required Axis axis,
})

Retrieve a SwayzeHeaderController for a particular axis.

Axis.horizontal will return columns Axis.vertical will return rows

Implementation

SwayzeHeaderController getHeaderControllerFor({required Axis axis}) {
  return axis == Axis.horizontal ? columns : rows;
}