AvatarStyle class

AvatarStyle is a data class that has styling-related properties to customize the appearance of CometChatAvatar

Inheritance

Constructors

AvatarStyle({double? outerViewWidth, Color? outerViewBackgroundColor, double? outerViewSpacing, TextStyle? nameTextStyle, double? outerBorderRadius, BoxBorder? outerViewBorder, 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
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
nameTextStyle TextStyle?
nameTextStyle font style is applied to the fallback name which is visible if an image url has not been provided
final
outerBorderRadius double?
outerBorderRadius of outer container
final
outerViewBackgroundColor Color?
outerViewBackgroundColor outer Container background Color
final
outerViewBorder BoxBorder?
outerViewBorder style the outer Container border
final
outerViewSpacing double?
outerViewSpacing Spacing between the image and the outer border
final
outerViewWidth double?
outerViewWidth outer view With
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double?
width provides width to the widget
finalinherited

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