ImageConfiguration class

Configuration information passed to the ImageProvider.resolve method to select a specific image.

See also:

Annotations
  • @immutable

Constructors

ImageConfiguration({AssetBundle bundle, double devicePixelRatio, Locale locale, TextDirection textDirection, Size size, TargetPlatform platform })
Creates an object holding the configuration information for an ImageProvider. [...]
const

Properties

bundle AssetBundle
The preferred AssetBundle to use if the ImageProvider needs one and does not have one already selected.
final
devicePixelRatio double
The device pixel ratio where the image will be shown.
final
hashCode int
The hash code for this object. [...]
read-only, override
locale Locale
The language and region for which to select the image.
final
platform TargetPlatform
The TargetPlatform for which assets should be used. This allows images to be specified in a platform-neutral fashion yet use different assets on different platforms, to match local conventions e.g. for color matching or shadows.
final
size Size
The size at which the image will be rendered.
final
textDirection TextDirection
The reading direction of the language for which to select the image.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

copyWith({AssetBundle bundle, double devicePixelRatio, Locale locale, TextDirection textDirection, Size size, String platform }) ImageConfiguration
Creates an object holding the configuration information for an ImageProvider. [...]
toString() String
Returns a string representation of this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
override

Constants

empty → const ImageConfiguration
An image configuration that provides no additional information. [...]