alternativeFontSize function

double alternativeFontSize(
  1. Size deviceSize, {
  2. required double potraitFontSize,
  3. required double landscapeFontSize,
})

Implementation

double alternativeFontSize(
  Size deviceSize, {
  required double potraitFontSize,
  required double landscapeFontSize,
}) {
  return isPortraitMode(deviceSize) ? potraitFontSize : landscapeFontSize;
}