ScreenshotStore class

A screenshot size an app store asks for.

final Screenshot listing = await shot.forStore(
  ScreenshotStore.ios69,
  frame: true,
  caption: 'Checkout in one tap',
);

Constructors

ScreenshotStore(String id, int width, int height, String label)
Creates a store size of width by height pixels, called id.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
height → int
The height in pixels.
final
id → String
The id Metro takes, e.g. ios-6.9.
final
label → String
What the size is for, e.g. iPhone 6.9".
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → int
The width in pixels.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
The size as Metro lists it.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

named(String id) → ScreenshotStore?
The store size with id, or null.

Constants

all → const List<ScreenshotStore>
Every store size.
ios65 → const ScreenshotStore
App Store, 6.5" iPhone: 1284×2778.
ios69 → const ScreenshotStore
App Store, 6.9" iPhone: 1320×2868.
ipad13 → const ScreenshotStore
App Store, 13" iPad: 2064×2752.
playPhone → const ScreenshotStore
Google Play, phone: 1080×1920.
playTablet → const ScreenshotStore
Google Play, 10" tablet: 1600×2560.