alternativeAlignment function

Alignment alternativeAlignment(
  1. Size deviceSize, {
  2. required Alignment portraitAlignment,
  3. required Alignment landscapeAlignment,
})

Implementation

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