AssetImageProvider class

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

render(String nameOrAlias, {bool isProjectImage = false, OnImageWidgetConfig? imageConfig}) AssetImage
渲染asset图片 nameOrAlias 通过名称或别名查找全路径 isProjectImage 当为项目本身工程下图时以相对路径提供,避免部分图片转换Uint8List失败问题 imageConfig 图片配置对象
renderImage(String nameOrAlias, {bool isProjectImage = false, OnImageWidgetConfig? imageConfig}) Image
渲染asset图片 nameOrAlias 通过名称或别名查找全路径 isProjectImage 当为项目本身工程下图时以相对路径提供,避免部分图片转换Uint8List失败问题 imageConfig 图片配置对象