toBytes method

  1. @override
Future<Uint8List> toBytes(
  1. int recorderId
)
override

Returns the bytes of a stopped recording as a Uint8List.

Note that this can only be called once the recording has ben stopped via stop.

Implementation

@override
Future<Uint8List> toBytes(int recorderId) {
  assert(_recorders.containsKey(recorderId));

  return _recorders[recorderId]!.toBytes();
}