DateStyle class
DateStyle is a data class that has styling-related properties to customize the appearance of CometChatDate
- Inheritance
-
- Object
- BaseStyles
- DateStyle
Constructors
- DateStyle.new({TextStyle? textStyle, EdgeInsetsGeometry? contentPadding, bool? isTransparentBackground, 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
- contentPadding → EdgeInsetsGeometry?
-
contentPadding set the content padding.
final
- 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
- isTransparentBackground → bool?
-
set the container to be transparent.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textStyle → TextStyle?
-
textStyle gives style to the date to be displayed
final
- width → double?
-
width provides width to the widget
finalinherited
Methods
-
copyWith(
{TextStyle? textStyle, EdgeInsetsGeometry? contentPadding, bool? isTransparentBackground, double? width, double? height, Color? background, BoxBorder? border, double? borderRadius, Gradient? gradient}) → DateStyle - Copies current DateStyle with some changes
-
merge(
DateStyle? other) → DateStyle -
Merges current DateStyle with
other
-
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