CodeChatUI<T> constructor
const
CodeChatUI<T> ({
- Key? key,
- required String url,
- required Map<
String, dynamic> requestBuilder(- String input
- required void onResponseSuccess(
- dynamic response,
- String input
- required ValueNotifier<
List< chatsValueListenable,T> > - required Widget chatBuilder(
- BuildContext context,
- T chat
- Map<
String, String> ? headerRequest, - void onFailure(
- dynamic error,
- dynamic response,
- String input
- PreferredSizeWidget? appBar,
- Widget sendButtonBuilder(
- BuildContext context,
- void onSend()
- Widget textFormFieldBuilder(
- BuildContext context,
- TextEditingController controller,
- FocusNode focusNode,
- void onFieldSubmitted(),
- Widget? loadingIndicator,
Implementation
const CodeChatUI({
Key? key,
required this.url,
required this.requestBuilder,
required this.onResponseSuccess,
required this.chatsValueListenable,
required this.chatBuilder,
this.headerRequest,
this.onFailure,
this.appBar,
this.sendButtonBuilder,
this.textFormFieldBuilder,
this.loadingIndicator,
}) : super(key: key);