ImageConfiguration class Null safety

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

See also:

Annotations

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
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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

Methods

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

Operators

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

Constants

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