CometChatCardGridElement class final
A grid layout that arranges items in a fixed number of columns.
- Inheritance
-
- Object
- CometChatCardElement
- CometChatCardGridElement
Constructors
-
CometChatCardGridElement({required String id, required List<
CometChatCardElement> items, int? columns, double? gap, dynamic padding, dynamic backgroundColor, double? borderRadius, dynamic borderColor, double? borderWidth}) -
const
-
CometChatCardGridElement.fromJson(Map<
String, dynamic> json) -
factory
Properties
- backgroundColor → dynamic
-
Background fill color of the grid container.
final
- borderColor → dynamic
-
Border color of the grid container.
final
- borderRadius → double?
-
Corner radius of the grid container.
final
- borderWidth → double?
-
Border stroke width of the grid container.
final
- columns → int?
-
Number of columns in the grid.
final
- gap → double?
-
Spacing between grid cells in logical pixels.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique identifier for this element within the card.
finalinherited
-
items
→ List<
CometChatCardElement> -
Child elements arranged into the grid.
final
- padding → dynamic
-
Padding around the grid, as a number or per-edge map.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The element type discriminator (e.g.
text,image,row).finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited