Recognizer constructor

Recognizer({
  1. required int id,
  2. required Model model,
  3. required int sampleRate,
  4. required MethodChannel channel,
  5. Pointer<VoskRecognizer>? recognizerPointer,
  6. VoskLibrary? voskLibrary,
})

Implementation

Recognizer({
  required this.id,
  required this.model,
  required this.sampleRate,
  required final MethodChannel channel,
  this.recognizerPointer,
  final VoskLibrary? voskLibrary,
}) : _channel = channel,
     _voskLibrary = voskLibrary;