BaseStyles class

BaseStyles is the base style class for most style classes provided by CometChatUIKit


BaseStyles(
  width: 100.0,
  height: 50.0,
  background: Colors.blue,
  gradient: LinearGradient(
    begin: Alignment.topCenter,
    end: Alignment.bottomCenter,
    colors: [Colors.blue, Colors.green],
  ),
  border: Border.all(
    color: Colors.grey,
    width: 2.0,
  ),
  borderRadius: 10.0,
)

Constructors

BaseStyles({double? width, double? height, Color? background, Gradient? gradient, BoxBorder? border, BorderRadiusGeometry? borderRadius})
const

Properties

background → Color?
background provides background color to the widget
final
border → BoxBorder?
border provides border around the widget
final
borderRadius → BorderRadiusGeometry?
borderRadius provides radius to the border around the widget
final
gradient → Gradient?
gradient provides (background) gradient to the widget
final
hashCode → int
The hash code for this object.
no setterinherited
height → double?
height provides height to the widget
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → double?
width provides width to the widget
final

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