ImageUtils class
- @Author: chuxiong
- @Created at: 2023/2/15 3:37 下午
- @Email:
- description 图片工具类
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
-
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
-
assetImage(
String name, {String assetPath = 'assets/images/', ImageFormat format = ImageFormat.png}) → ImageProvider< Object> -
getAssetImg(
{required String imagePath, BoxFit boxFit = BoxFit.cover, double? height, double? width, Widget? errorWidget, Color? color, ImageFormat format = ImageFormat.png}) → Widget