RCKChatBackgroundConfig class
聊天页面背景配置
Constructors
-
RCKChatBackgroundConfig.new({Color? backgroundColor, Color? safeAreaColor, ImageProvider<
Object> ? backgroundImage, String? backgroundImageUrl, BoxFit imageFitMode = BoxFit.cover, ImageRepeat imageRepeat = ImageRepeat.noRepeat})
Properties
- backgroundColor → Color?
-
背景颜色,当没有设置背景图片时使用
final
-
backgroundImage
→ ImageProvider<
Object> ? -
背景图片(本地资源)
final
- backgroundImageUrl → String?
-
背景图片网络URL
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageFitMode → BoxFit
-
图片适配方式
final
- imageRepeat → ImageRepeat
-
是否重复平铺图片
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- safeAreaColor → Color?
-
非安全区域背景颜色
final
Methods
-
copyWith(
{Color? backgroundColor, ImageProvider< Object> ? backgroundImage, String? backgroundImageUrl, BoxFit? imageFitMode, ImageRepeat? imageRepeat}) → RCKChatBackgroundConfig - 创建一个新的配置,覆盖当前配置的某些属性
-
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