RecorderController class

Inheritance

Constructors

RecorderController()

Properties

androidEncoder AndroidEncoder
getter/setter pair
androidOutputFormat AndroidOutputFormat
getter/setter pair
currentScrolledDuration ValueNotifier<int>
Listen to this value notifier when current time position of recorded audio is required.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
hasPermission bool
If we have microphone permission or not.
no setter
iosEncoder IosEncoder
getter/setter pair
isRecording bool
State of recording on/off
no setter
normalizationFactor double
Db we get from native is too high so in Android it the value is subtracted and in IOS value added
getter/setter pair
recorderState RecorderState
Current state of the recorder
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleRate int
getter/setter pair
shouldClearLabels bool
getter/setter pair
shouldRefresh bool
no setter
updateFrequency Duration
At which rate waveform needs to be updated
getter/setter pair
waveData List<double>
Current list of decibels(different values for each platform)
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
checkPermission() Future<bool>
This method can be used to check microphone permission. Returns true if we have permission else false.
dispose() → void
This function must be called to free resources, it will also dispose the controller.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
pause() Future<void>
Use this to pause recording. Can start recording again after pausing.
record([String? path]) Future<void>
Use this to check permission and starts recording.
refresh() → void
Use this function to get wave to the initial state after scrolling, whether recording is stopped or running.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
reset() → void
Clears WaveData and labels from the list.
revertClearlabelCall() → void
sets shouldClearLabels flag to false
setRefresh(bool refresh) → void
This function can be used to handle the refresh state. for most cases refresh() should be fine.
setScrolledPostionDuration(int duration) → void
Internally used to set scrolled position to duration.
stop([bool callReset = true]) Future<String?>
Use this stop recording. Resources are freed after calling this and file is saved. Returns path where file is saved.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited