meetsPlayStoreRequirements method

bool meetsPlayStoreRequirements()

Whether a full-screen capture on this device is a valid Google Play screenshot: each side 320–3840 px, and the long side at most twice the short side.

Before 1.1.0 this checked the logical size and ignored the aspect rule.

Implementation

bool meetsPlayStoreRequirements() {
  final shortSide = pixelSize.shortestSide;
  final longSide = pixelSize.longestSide;
  return shortSide >= 320 && longSide <= 3840 && longSide <= shortSide * 2;
}