CometChatPollsBubbleStyle class

PollsBubbleStyle is a data class that has styling-related properties to customize the appearance of CometChatPollsBubble

Inheritance

Constructors

CometChatPollsBubbleStyle.new({TextStyle? questionTextStyle, TextStyle? voteCountTextStyle, TextStyle? pollOptionsTextStyle, Color? radioButtonColor, Color? pollOptionsBackgroundColor, Color? selectedOptionColor, Color? unSelectedOptionColor, Color? backgroundColor, Color? iconColor, BoxBorder? border, BorderRadiusGeometry? borderRadius, Color? progressColor, Color? progressBackgroundColor, CometChatAvatarStyle? voterAvatarStyle, CometChatAvatarStyle? messageBubbleAvatarStyle, CometChatDateStyle? messageBubbleDateStyle, DecorationImage? messageBubbleBackgroundImage, TextStyle? threadedMessageIndicatorTextStyle, Color? threadedMessageIndicatorIconColor, TextStyle? senderNameTextStyle, CometChatMessageReceiptStyle? messageReceiptStyle})
poll bubble style
const

Properties

backgroundColor Color?
backgroundColor used to customise the background color of the polls bubble
final
border BoxBorder?
border provides border to the message bubble of a received message
final
borderRadius BorderRadiusGeometry?
borderRadius provides border radius to the message bubble of a received message
final
hashCode int
The hash code for this object.
no setterinherited
iconColor Color?
iconColor is the color of the icon
final
messageBubbleAvatarStyle CometChatAvatarStyle?
messageBubbleAvatarStyle provides style to the avatar of the sender
final
messageBubbleBackgroundImage DecorationImage?
messageBubbleBackgroundImage provides background image to the message bubble of the sent message
final
messageBubbleDateStyle CometChatDateStyle?
messageBubbleDateStyle provides style to the date of the message bubble
final
messageReceiptStyle CometChatMessageReceiptStyle?
messageReceiptStyle provides style to the message receipt
final
pollOptionsBackgroundColor Color?
pollOptionsBackgroundColor poll option bar background color
final
pollOptionsTextStyle TextStyle?
pollOptionsTextStyle poll options text style
final
progressBackgroundColor Color?
progressBackgroundColor provides color to the progress bar background
final
progressColor Color?
progressColor provides color to the progress bar
final
questionTextStyle TextStyle?
questionTextStyle question text style
final
radioButtonColor Color?
radioButtonColor radio button color
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedOptionColor Color?
selectedOptionColor selected option poll bar color
final
senderNameTextStyle TextStyle?
senderNameTextStyle provides style to the sender name of the message
final
threadedMessageIndicatorIconColor Color?
threadedMessageIndicatorIconColor provides color to the threaded message icon
final
threadedMessageIndicatorTextStyle TextStyle?
threadedMessageIndicatorTextStyle provides text style to the threaded message indicator
final
type Object
The extension's type.
no setterinherited
unSelectedOptionColor Color?
unSelectedOptionColor unselected option poll bar color
final
voteCountTextStyle TextStyle?
voteCountTextStyle vote count text style
final
voterAvatarStyle CometChatAvatarStyle?
voterAvatarStyle provides style to the voter's avatar
final

Methods

copyWith({TextStyle? questionTextStyle, TextStyle? voteCountTextStyle, TextStyle? pollOptionsTextStyle, Color? radioButtonColor, Color? pollOptionsBackgroundColor, Color? selectedOptionColor, Color? unSelectedOptionColor, Color? backgroundColor, Color? iconColor, BoxBorder? border, BorderRadiusGeometry? borderRadius, Color? progressColor, Color? progressBackgroundColor, CometChatAvatarStyle? voterAvatarStyle, CometChatAvatarStyle? messageBubbleAvatarStyle, CometChatDateStyle? messageBubbleDateStyle, DecorationImage? messageBubbleBackgroundImage, TextStyle? threadedMessageIndicatorTextStyle, Color? threadedMessageIndicatorIconColor, TextStyle? senderNameTextStyle, CometChatMessageReceiptStyle? messageReceiptStyle}) CometChatPollsBubbleStyle
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
override
lerp(covariant ThemeExtension<CometChatPollsBubbleStyle>? other, double t) CometChatPollsBubbleStyle
Linearly interpolate with another ThemeExtension object.
override
merge(CometChatPollsBubbleStyle? other) CometChatPollsBubbleStyle
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

Static Methods

of(BuildContext context) CometChatPollsBubbleStyle