sendMessageImage method

Future<GenerateContentResponse> sendMessageImage(
  1. Uint8List prompt
)

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

prompt is the image to be converted into a single piece of Content to send to the model.

Throws InvalidStateException if the Chat instance has an active request.

Implementation

Future<GenerateContentResponse> sendMessageImage(Uint8List prompt) =>
    sendMessage(content(role : Role.user,
        init:(ContentBuilder builder){
         builder.image(prompt);
        }));