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