VoiceModeProvider constructor

VoiceModeProvider({
  1. required void notifyListeners(),
  2. required bool isVoiceMode(),
  3. required void setStatus(
    1. ChatStatus status
    ),
  4. required ChatStatus getStatus(),
  5. required Future<void> send({
    1. required void onChunk(
      1. String chunk
      ),
    2. required String text,
    }),
  6. required void errorReporter(
    1. String context,
    2. String message
    ),
})

Implementation

VoiceModeProvider({
  required this.notifyListeners,
  required this.isVoiceMode,
  required this.setStatus,
  required this.getStatus,
  required this.send,
  required this.errorReporter,
}) {
  unawaited(_setup());
}