AssetVariantChooser class
Constructors
- AssetVariantChooser()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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 nonexistent 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