FlutterAudioRecorder2 class
Audio Recorder Plugin
Constructors
- FlutterAudioRecorder2(String path, {AudioFormat? audioFormat, int sampleRate = 16000})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialized → Future?
-
no setter
- recording → Recording?
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
current(
{int channel = 0}) → Future< Recording?> - Ask for current status of recording Returns the result of current recording status Metering level, Duration, Status...
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → Future -
Request currently Recording recording to be
Paused
Note: Use current to get latest state of recording after pause -
resume(
) → Future -
Request currently
Paused
recording to continue -
start(
) → Future -
Request an initialized recording instance to be
started
Once executed, audio recording will start working and a file will be generated in user's file system -
stop(
) → Future< Recording?> - Request the recording to stop Once its stopped, the recording file will be finalized and will not be start, resume, pause anymore.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- fs ↔ LocalFileSystem
-
getter/setter pair
-
hasPermissions
→ Future<
bool?> -
Returns the result of record permission
if not determined(app first launch),
this will ask user to whether grant the permission
no setter
Constants
- DEFAULT_EXTENSION → const String