GlobalAssets class

@author : WangYaJun (kiit@hellotalk.com) @date : 25/11/2020 @description : assets图片资源全局定义

Constructors

GlobalAssets.new()

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

asset({String assetsPath = AssetsPath, required String assetName, required String packageName, double? w, double? h, Color? color, BoxFit? fit, double? size}) Image
本地资源assets加载 设置宽、高,h,w 如果是正方形,则可以直接设置size值
assetImage({String assetsPath = AssetsPath, required String assetName, required String packageName}) AssetImage

Constants

AssetsPath → const String
DefaultSize → const double
package → const String