readMessage method

Future<bool> readMessage(
  1. MessageModel response
)

Implementation

Future<bool> readMessage(MessageModel response) async {
  if (response.response == null) return false;

  await flutterTts.speak(response.response!.gptResponse ?? "");
  return true;
}