RecorderController class
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