AssetVariantChooser class Null safety

Constructors

AssetVariantChooser()
factory

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

chooseNumericVariant(BuildContext context) double
Return the best choice of resolution variants for current device pixel ratio in the double type. Example: 1.5
chooseVariant(BuildContext context) String
Return the best choice of resolution variants for current device pixel ratio in the String type. Example: "1.5x"
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
setAvailableVariants(List<String> pixelRatios, {String defaultRatioName = ""}) → void
Set available variants for each supported asset resolution.
toString() String
A string representation of this object.
inherited

Operators

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