Class ImageUtils
Namespace: Unity.UIWidgets.widgets
Syntax
public class ImageUtils
Methods
createLocalImageConfiguration(BuildContext, Size)
Declaration
public static ImageConfiguration createLocalImageConfiguration(BuildContext context, Size size = null)
Parameters
Type | Name | Description |
---|---|---|
BuildContext | context | |
Size | size |
Returns
Type | Description |
---|---|
ImageConfiguration |
precacheImage(ImageProvider, BuildContext, Size, ImageErrorListener)
Declaration
public IPromise precacheImage(ImageProvider provider, BuildContext context, Size size = null, ImageErrorListener onError = null)
Parameters
Type | Name | Description |
---|---|---|
ImageProvider | provider | |
BuildContext | context | |
Size | size | |
ImageErrorListener | onError |
Returns
Type | Description |
---|---|
IPromise |