generateContent method

  1. @override
Future<String?> generateContent(
  1. GenerativeModel generativeModel,
  2. String prompt,
  3. List<File>? images
)
override

Generates a response from the backend with the provided text represented Content.

Implementation

@override
Future<String?> generateContent(
  GenerativeModel generativeModel,
  String prompt,
  List<File>? images,
) async {
  return await _methodChannel.invokeMethod<String>(
    'generateContent',
    Map.from(_getGenerateContentInput(generativeModel, prompt, images)),
  );
}