MultiImageProvider class

Convenience provider for a list of ImageProviders

Inheritance

Constructors

MultiImageProvider(List<ImageProvider<Object>> imageProviders, {int initialIndex = 0})

Properties

animationCurve Curve
Animation curve for the image transition (fade in after loading)
getter/setter pairinherited
animationDuration Duration
Animation duration for the image transition (fade in after loading)
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
imageCount int
Total count of images
no setteroverride
imageProviders List<ImageProvider<Object>>
final
initialIndex int
Index of the initial image to display
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

errorWidgetBuilder(BuildContext context, int index, Object error, StackTrace? stackTrace) Widget
Builds the error widget for the image at the specified index.
inherited
imageBuilder(BuildContext context, int index) ImageProvider<Object>
Returns the image for the given index.
override
imageWidgetBuilder(BuildContext context, int index) Widget
Returns the image widget for the given index.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
progressIndicatorWidgetBuilder(BuildContext context, int index, {double? value}) Widget
Returns the progress indicator widget for the given index. The default implementation returns a CircularProgressIndicator. Override this method to customize the progress indicator. The value parameter is the progress value between 0.0 and 1.0. If value is null, the progress indicator is in indeterminate mode. The index parameter is the index of the image being loaded. The context parameter is the build context.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited