PictureConfiguration class

Configuration information passed to the PictureProvider.resolve method to select a specific picture.

See also:

Annotations

Constructors

PictureConfiguration({AssetBundle? bundle, Locale? locale, TextDirection? textDirection, Rect? viewBox, TargetPlatform? platform, ColorFilter? colorFilter})
Creates an object holding the configuration information for an PictureProvider.
const

Properties

bundle AssetBundle?
The preferred AssetBundle to use if the PictureProvider needs one and does not have one already selected.
final
colorFilter ColorFilter?
The ColorFilter, if any, that was applied to the drawing.
final
hashCode int
The hash code for this object.
no setteroverride
locale Locale?
The language and region for which to select the picture.
final
platform TargetPlatform?
The TargetPlatform for which assets should be used. This allows pictures 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.
no setterinherited
textDirection TextDirection?
The reading direction of the language for which to select the picture.
final
viewBox Rect?
The size at which the picture will be rendered.
final

Methods

copyWith({AssetBundle? bundle, Locale? locale, TextDirection? textDirection, Rect? viewBox, TargetPlatform? platform, ColorFilter? colorFilter}) PictureConfiguration
Creates an object holding the configuration information for an PictureProvider.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Constants

empty → const PictureConfiguration
a picture configuration that provides no additional information.