settings static method
Sets the configuration for the PImageService
Implementation
static void settings({
int? maxCacheSize,
int? maxImages,
ImageProvider? defaultPlaceholder,
}) {
if (maxImages != null) {
PImageGlobals.pImageInMemoryImages = maxImages;
}
if (maxCacheSize != null) {
PImageGlobals.pImageInMemorySize = maxCacheSize;
}
if (defaultPlaceholder != null) {
_defaultPlaceholder = defaultPlaceholder;
}
}