toBytes method

Future<Uint8List> toBytes()

Returns the recorded bytes.

stop has to have been called before this can be called.

Implementation

Future<Uint8List> toBytes() {
  _checkInitialized();
  _checkNotDisposed();
  assert(value.stopped,
      'The recorder has to be stopped before toBytes can be used.');

  return _microphonePlatform.toBytes(_recorderId);
}