backgroundColor property

  1. @override
Color? backgroundColor
final

Background color of the message content.

Defaults to null.

Example:


@override
Widget build(BuildContext context) {
  return SfChat(
    incomingMessageSettings: ChatMessageSettings(
      backgroundColor: Colors.grey[200],
    ),
    outgoingMessageSettings: ChatMessageSettings(
      backgroundColor: Colors.grey[400],
    ),
  );
}

Implementation

@override
final Color? backgroundColor;