OssImageConfig class

oss图片参数配置

Constructors

OssImageConfig()
factory

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

getCustomUrl(String originalUrl, StringBuffer arguments, {OssType ossType = OssType.aliYun}) String
获取图片链接 originalUrl 原图地址 arguments 图片参数,参考OssImageArguments ossType 参考规则类型
getImageUrl(String originalUrl, ImageArgumentType argumentType, {OssType ossType = OssType.aliYun, int? width, int? height, int? radius}) String
获取图片链接 originalUrl 原图地址 argumentType 组件图片参数类型ImageArgumentType.custom除外 ossType 参考规则类型 width 展示图片宽度argumentType == ImageArgumentType.resizeW或 argumentType == ImageArgumentType.corners时生效 height 展示图片高度argumentType == ImageArgumentType.resizeH时生效 radius 当argumentType == ImageArgumentType.circle时指内切圆半径; 当argumentType==ImageArgumentType.corners时指圆角半径
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 Properties

instance OssImageConfig
no setter