effectiveSmallestWidthDp property

int get effectiveSmallestWidthDp

Resolves the effective smallest width, falling back to the min dimension and finally to the 300 dp design baseline.

Implementation

int get effectiveSmallestWidthDp {
  if (smallestScreenWidthDp > 0) return smallestScreenWidthDp;
  final minDim =
      screenWidthDp < screenHeightDp ? screenWidthDp : screenHeightDp;
  if (minDim > 0) return minDim;
  return 300;
}