Message.withAudio constructor

Message.withAudio({
  1. required String text,
  2. required Uint8List audioBytes,
  3. bool isUser = false,
})

Implementation

factory Message.withAudio({
  required String text,
  required Uint8List audioBytes,
  bool isUser = false,
}) {
  return Message(
    text: text,
    audioBytes: audioBytes,
    isUser: isUser,
  );
}