PlayImageSpec class
An image Play requires of every listing, at one exact size.
Both are Play's rules. Neither is configurable, and that is the point: a listing without an icon is not a listing, so letting a config omit it would only ever hide the failure.
Constructors
- PlayImageSpec(String label, int width, int height, {StoreImageRules imageRules = playImageRules})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
final
- imageRules → StoreImageRules
-
Which encoding rules the slot is under, because Play's are not uniform:
the icon is the one image in either store that is asked for an alpha
channel ("32-bit PNG (with alpha)") while everything beside it is refused
one ("JPEG or 24-bit PNG (no alpha)"). Carried by the spec rather than
decided at the call site, so the exception lives next to the slot it
belongs to instead of in an
ifsomebody has to remember.final - label → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sizeDescription → String
-
no setter
- width → int
-
final
Methods
-
accepts(
int w, int h) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited