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

Constants

empty → ImageConfiguration

An image configuration that provides no additional information.

Constructors

ImageConfiguration({AssetBundle bundle, double devicePixelRatio, Locale locale, Size size, String 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.

read-only
devicePixelRatio → double

The device pixel ratio where the image will be shown.

read-only
hashCode → int

read-only
locale → Locale

The language and region for which to select the image.

read-only
platform → String

A string (same as Platform.operatingSystem) that represents the platform 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.

read-only
size → Size

The size at which the image will be rendered.

read-only
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

Methods

copyWith({AssetBundle bundle, double devicePixelRatio, Locale locale, Size size, String platform }) → ImageConfiguration

Creates an object holding the configuration information for an ImageProvider.

toString() → String

Returns a string representation of this object.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited