CometChatReactionsStyle class

CometChatReactionsStyle is a class which is used to set the style for the reactions It takes emojiTextStyle, countTextStyle, width, height, background, gradient, border, borderRadius as a parameter

ReactionsStyle(
reactionTextStyle: TextStyle(color: Colors.white),
reactionCountTextStyle: TextStyle(color: Colors.white),
backgroundColor: Colors.blue,
);
Inheritance

Constructors

CometChatReactionsStyle.new({TextStyle? emojiTextStyle, TextStyle? countTextStyle, Color? activeReactionBackgroundColor, BoxBorder? activeReactionBorder, Color? backgroundColor, BoxBorder? border, BorderRadiusGeometry? borderRadius, Color? countTextColor})

Properties

activeReactionBackgroundColor Color?
activeReactionBackgroundColor is the background color applied to selected reaction
getter/setter pair
activeReactionBorder BoxBorder?
activeReactionBorder is the border style applied to selected reaction
getter/setter pair
backgroundColor Color?
backgroundColor provides background color to the message bubble of a received message
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
countTextColor Color?
countTextColor is the text color applied to reaction count
final
countTextStyle TextStyle?
countTextStyle is the text style applied to reaction count
getter/setter pair
emojiTextStyle TextStyle?
emojiTextStyle is the text style applied to reactions
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type Object
The extension's type.
no setterinherited

Methods

copyWith({TextStyle? emojiTextStyle, TextStyle? countTextStyle, BoxBorder? border, BorderRadiusGeometry? borderRadius, Color? activeReactionBackgroundColor, BoxBorder? activeReactionBorder, Color? backgroundColor, Color? emojiTextColor, Color? countTextColor, double? elevation}) CometChatReactionsStyle
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
override
lerp(covariant ThemeExtension<CometChatReactionsStyle>? other, double t) CometChatReactionsStyle
Linearly interpolate with another ThemeExtension object.
override
merge(CometChatReactionsStyle? style) CometChatReactionsStyle
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) CometChatReactionsStyle