PImageService class

Image provider service for PImage

Constructors

PImageService()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

getImage(String gsUrl, {String? id}) ImageProvider<Object>
Gets the ImageProvider of the provided gsUrl
getPlaceholder(String? assetName) ImageProvider<Object>
isLoaded(String gsUrl) bool
preloadImages(List<String> gsUrls, BuildContext context, {Function? onFinish}) → void
Preloads the gsUrls images and stores them
settings({int? maxCacheSize, int? maxImages, ImageProvider<Object>? defaultPlaceholder}) → void
Sets the configuration for the PImageService
updateImage(String id, ImageProvider<Object> image) → void
Manually updates the image provider of id