ChatHeaderBuilder typedef
ChatHeaderBuilder =
Widget Function(BuildContext context, ChatHeaderData data)
Signature for ChatWidget.headerBuilder — lets a host app render a fully custom chat header while still driving the SDK's data and actions.
The builder is handed a ChatHeaderData carrying everything the built-in header uses (name, avatar, online status, theme mode) plus every action callback. Return any widget; it's placed where the default header would go and measured for layout, so the message list still tucks underneath it.
Implementation
typedef ChatHeaderBuilder =
Widget Function(BuildContext context, ChatHeaderData data);