getSmartReplies static method

Future<List<String>> getSmartReplies(
  1. List<TextMessage> messageList
)

Get suggested reply string list based on input message string list

Implementation

static Future<List<String>> getSmartReplies(List<TextMessage> messageList) async {
  final jsonString = await _channel.invokeMethod('getSmartReplies', jsonEncode(messageList));
  return List<String>.from(jsonDecode(jsonString));
}