startChat method

  1. @override
Future<String?> startChat(
  1. GenerativeModel generativeModel,
  2. String prompt, {
  3. 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)),
  );
}