RCKImageStyleConfig class

图片样式配置

Constructors

RCKImageStyleConfig({BoxFit fit = BoxFit.contain, double? maxWidth = 200, double? maxHeight = 200, double scale = 1.0, double borderRadius = 6.0})
构造函数
const

Properties

borderRadius → double
圆角半径
final
fit → BoxFit
图片适应方式
final
hashCode → int
The hash code for this object.
no setterinherited
maxHeight → double?
最大高度
final
maxWidth → double?
最大宽度
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scale → double
缩放比例
final

Methods

copyWith({BoxFit? fit, double? maxWidth, double? maxHeight, double? scale, double? borderRadius}) → RCKImageStyleConfig
创建一个新的配置,覆盖当前配置的某些属性
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