ImageListFactory class
flutter: imageName:{packageName:path} native: imageName:{android:name,ios:name}
Constructors
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
-
flutterImageMap(
Map< String, ImageEntry> ? imageMap) → void -
getFlutterImageResponse(
String imageName) → ImageResponse? -
获取图片路径
imageName
图片名 -
getImagePathOrName(
String nameOrAlias) → String -
获取图片路径或名称
nameOrAlias
图片名称或别名 -
getNativeImageResponse(
String imageAlias) → ImageResponse? -
获取native图片名,通过ImageWidget方式加载,若返回null表示该图片不存在.
imageAlias
图片别名 -
hasFlutterImage(
String imageName) → bool -
根据图片名称或相对路径判断图片是否包含在flutter项目中
imageName
图片名称 -
hasImage(
String imageName) → bool -
根据图片名称或相对路径判断图片是否已存在
imageName
图片名称或相对路径 -
hasNativeImage(
String imageAlias) → bool -
根据图片名称检测native图片是否存在(该方式只做过滤不保证实际存在,实际图片通过ImageWidget加载时作判断.)
imageAlias
图片别名 -
nativeImageMap(
Map< String, NativeImageEntry> ? imageMap) → void -
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