I use mic_stream to get real-time value of my microphone.
I use a listener listener = stream.listen((samples) => currentSamples = samples);
listener = stream.listen((samples) => currentSamples = samples);
And