RCKAvatarConfig class

头像配置

Constructors

RCKAvatarConfig.new({AvatarShape shape = AvatarShape.circle, double size = avatarHeight, double borderRadius = 8.0, Color? borderColor, double? borderWidth, Color? backgroundColor, Offset? badgeOffset = const Offset(5, 6)})
const

Properties

backgroundColor Color?
头像背景色
final
badgeOffset Offset?
头像右上角未读消息的位置偏移
final
borderColor Color?
头像边框颜色
final
borderRadius double
圆角大小 (当形状为roundedRect时有效)
final
borderWidth double?
头像边框宽度
final
effectiveSize double
获取有效尺寸 (32-64范围内)
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape AvatarShape
头像形状
final
size double
头像尺寸 (32-64dp之间)
final

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