alternativeWidth function

double alternativeWidth(
  1. Size deviceSize, {
  2. required double portraitWidth,
  3. required double landscapeWidth,
})

Implementation

double alternativeWidth(
  Size deviceSize, {
  required double portraitWidth,
  required double landscapeWidth,
}) {
  return isPortraitMode(deviceSize) ? portraitWidth : landscapeWidth;
}