sendMessage method
Send a message synchronously and return the full response.
Implementation
@override
Future<Map<String, dynamic>> sendMessage(
String conversationId,
List<Map<String, dynamic>> contents,
Map<String, Object>? extraContext,
) async {
final result = await _methodChannel.invokeMethod<Map>(
'sendMessage',
{
'conversationId': conversationId,
'contents': contents,
if (extraContext != null) 'extraContext': extraContext,
},
);
return Map<String, dynamic>.from(result!);
}