withOrientation method

AFFormFactorSize withOrientation(
  1. String orient
)

Implementation

AFFormFactorSize withOrientation(String orient) {
  final bigger   = width > height ? width : height;
  final smaller  = width > height ? height: width;
  if(orient == idOrientationPortrait) {
    return AFFormFactorSize(width: smaller, height: bigger, identifier: "$identifier:$orient");
  } else {
    return AFFormFactorSize(width: bigger, height: smaller, identifier: "$identifier:$orient");
  }
}