MessageListStyle class

MessageListStyle is a data class that has styling-related properties to customize the appearance of CometChatMessageList

Inheritance

Constructors

MessageListStyle({Color? loadingIconTint, TextStyle? emptyTextStyle, TextStyle? errorTextStyle, EdgeInsetsGeometry? contentPadding, double? width, double? height, Color? background, BoxBorder? border, double? borderRadius, Gradient? gradient})
const

Properties

background → Color?
background provides background color to the widget
finalinherited
border → BoxBorder?
border provides border around the widget
finalinherited
borderRadius → double?
borderRadius provides radius to the border around the widget
finalinherited
borderRadiusGeometry → BorderRadiusGeometry?
borderRadiusGeometry
finalinherited
contentPadding → EdgeInsetsGeometry?
final
elevation → double?
elevation
finalinherited
emptyTextStyle → TextStyle?
emptyTextStyle provides styling for text to indicate message list is empty
final
errorTextStyle → TextStyle?
errorTextStyle provides styling for text to indicate some error has occured while fetching the message list
final
gradient → Gradient?
gradient provides (background) gradient to the widget
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
height → double?
height provides height to the widget
finalinherited
loadingIconTint → Color?
loadingIconTint provides color to loading icon
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → double?
width provides width to the widget
finalinherited

Methods

copyWith({Color? loadingIconTint, TextStyle? emptyTextStyle, TextStyle? errorTextStyle, EdgeInsetsGeometry? contentPadding, double? width, double? height, Color? background, Border? border, double? borderRadius, Gradient? gradient}) → MessageListStyle
Copy with some properties replaced
mergeWith(MessageListStyle? other) → MessageListStyle
Merge with another MessageListStyle
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