SliverSize.axis constructor

const SliverSize.axis(
  1. double cross,
  2. double main,
  3. Axis axis
)

Creates a size with cross and main extents.

Implementation

const SliverSize.axis(double cross, double main, this.axis)
    : super(
        axis == Axis.vertical ? cross : main,
        axis == Axis.vertical ? main : cross,
      );