alternativeAlignment function
Implementation
Alignment alternativeAlignment(
Size deviceSize, {
required Alignment portraitAlignment,
required Alignment landscapeAlignment,
}) {
return isPortraitMode(deviceSize) ? portraitAlignment : landscapeAlignment;
}