startChat method
Future<String?>
startChat(
- GenerativeModel generativeModel,
- String prompt, {
- List<
ChatMessage> ? history,
override
Generates a response from the backend with the provided text represented Content.
Implementation
@override
Future<String?> startChat(
GenerativeModel generativeModel,
String prompt, {
List<ChatMessage>? history,
}) async {
return await _methodChannel.invokeMethod<String>(
'startChat',
Map.from(_getStartChatInput(generativeModel, prompt, history: history)),
);
}