ChatGroup constructor

const ChatGroup({
  1. Key? key,
  2. required List<Widget> children,
  3. AxisAlignmentGeometry? alignment,
  4. Color? color,
  5. ChatBubbleType? type,
  6. BorderRadiusGeometry? borderRadius,
  7. EdgeInsetsGeometry? padding,
  8. BorderSide? border,
  9. double? spacing,
  10. Widget? avatarPrefix,
  11. Widget? avatarSuffix,
  12. AxisAlignmentGeometry? avatarAlignment,
  13. double? avatarSpacing,
})

Creates a ChatGroup.

Parameters:

  • children (List<Widget>, required): The list of chat bubbles to display.
  • alignment (AxisAlignmentGeometry?, optional): The alignment of the chat bubbles within the group.
  • color (Color?, optional): The background color of the chat bubbles.
  • type (ChatBubbleType?, optional): The type of the chat bubbles.
  • borderRadius (BorderRadiusGeometry?, optional): The border radius of the chat bubbles.
  • padding (EdgeInsetsGeometry?, optional): The padding inside the chat bubbles.
  • border (BorderSide?, optional): The border of the chat bubbles.
  • spacing (double?, optional): The spacing between chat bubbles.
  • avatarPrefix (Widget?, optional): The widget to display before the chat bubbles.
  • avatarSuffix (Widget?, optional): The widget to display after the chat bubbles.
  • avatarAlignment (AxisAlignmentGeometry?, optional): The alignment of the avatar.
  • avatarSpacing (double?, optional): The spacing between the avatar and the chat bubbles.

Implementation

const ChatGroup({
  super.key,
  required this.children,
  this.alignment,
  this.color,
  this.type,
  this.borderRadius,
  this.padding,
  this.border,
  this.spacing,
  this.avatarPrefix,
  this.avatarSuffix,
  this.avatarAlignment,
  this.avatarSpacing,
});