generateContent method
Generates a response from the backend with the provided text represented Content.
Implementation
@override
Future<String?> generateContent(
GenerativeModel generativeModel,
String prompt,
) async {
Map<String, dynamic> input = {
"prompt": prompt,
};
input.addAll(Map.from(generativeModel.toMap()));
return await methodChannel.invokeMethod<String>(
'generateContent',
Map.from(input),
);
}