ListItemStyle class

ListItemStyle is a data class that has styling-related properties to customize the appearance of CometChatListItem

Inheritance

Constructors

ListItemStyle.new({TextStyle? titleStyle, Color? separatorColor, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, 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 provides radius to the border around the widget
finalinherited
elevation double?
elevation set bubble elevation
finalinherited
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
margin EdgeInsetsGeometry?
Empty space to surround the CometChatListItem.
final
padding EdgeInsetsGeometry?
Empty space to inscribe inside the decoration. The child, if any, is placed inside this padding
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
separatorColor Color?
separatorColor customize the color of the horizontal line separating the list items
final
titleStyle TextStyle?
titleStyle TextStyle for List item title
final
width double?
width provides width to the widget
finalinherited

Methods

copyWith({TextStyle? titleStyle, Color? separatorColor, double? width, double? height, Color? background, Gradient? gradient, BoxBorder? border, double? borderRadius}) → dynamic
merge(ListItemStyle? style) → dynamic
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