CometChatIncomingCallStyle class

CometChatIncomingCallStyle is a data class that has styling-related properties to customize the appearance of CometChatIncomingCallScreen

CometChatIncomingCallStyle(
 backgroundColor: Colors.white,
 avatarStyle: CometChatAvatarStyle(),
 declineIconColor: Colors.red,
 acceptIconColor: Colors.green,
 );
Inheritance

Constructors

CometChatIncomingCallStyle.new({Color? backgroundColor, CometChatAvatarStyle? avatarStyle, Color? subtitleColor, TextStyle? subtitleTextStyle, Color? titleColor, TextStyle? titleTextStyle, BorderRadiusGeometry? borderRadius, Border? border, Color? declineButtonColor, Color? acceptButtonColor, Color? acceptTextColor, TextStyle? acceptTextStyle, Color? declineTextColor, TextStyle? declineTextStyle, Color? callIconColor})

Properties

acceptButtonColor Color?
acceptButtonColor is used to set a custom color to accept button
final
acceptTextColor Color?
acceptTextColor is used to set the color for the accept text.
final
acceptTextStyle TextStyle?
acceptTextStyle is used to set the text style for the accept text.
final
avatarStyle CometChatAvatarStyle?
avatarStyle is used to set the avatar style.
final
backgroundColor Color?
backgroundColor is used to set the background color.
final
border Border?
border provides border for the widget
final
borderRadius BorderRadiusGeometry?
borderRadius provides border radius for the widget
final
callIconColor Color?
callIconColor is used to set a custom color to call icon
final
declineButtonColor Color?
declineButtonColor is used to set the button color.
final
declineTextColor Color?
declineTextColor is used to set the color for the decline text.
final
declineTextStyle TextStyle?
declineTextStyle is used to set the text style for the decline text.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtitleColor Color?
subtitleColor is used to set the color for the subtitle.
final
subtitleTextStyle TextStyle?
subtitleTextStyle is used to set the text style for the subtitle.
final
titleColor Color?
titleColor is used to set the color for the title.
final
titleTextStyle TextStyle?
titleTextStyle is used to set the text style for the title.
final
type Object
The extension's type.
no setterinherited

Methods

copyWith({Color? backgroundColor, CometChatAvatarStyle? avatarStyle, Color? subtitleColor, TextStyle? subtitleTextStyle, Color? titleColor, TextStyle? titleTextStyle, BorderRadiusGeometry? borderRadius, Border? border, Color? declineButtonColor, Color? acceptButtonColor, TextStyle? declineTextStyle, TextStyle? acceptTextStyle, Color? acceptTextColor, Color? declineTextColor, Color? callIconColor}) CometChatIncomingCallStyle
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
override
lerp(covariant ThemeExtension<CometChatIncomingCallStyle>? other, double t) CometChatIncomingCallStyle
Linearly interpolate with another ThemeExtension object.
override
merge(CometChatIncomingCallStyle? style) CometChatIncomingCallStyle
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) CometChatIncomingCallStyle