Message.audioOnly constructor

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

Implementation

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