AudioPickerOptions class

Picker behaviour for SingleAudioPicker. Distinct from the visual style.

Constructors

AudioPickerOptions({List<String>? allowedExtensions, Duration? maxDuration, Future<Duration?> durationResolver(String path)?})
const

Properties

allowedExtensions List<String>?
File extensions accepted by the picker dialog, e.g. ["mp3", "wav"]. Null = file_picker's default audio file types.
final
durationResolver Future<Duration?> Function(String path)?
Reads duration for the file at path. Plug in a metadata reader (audioplayers, just_audio, etc.) — media_pro does not depend on one to keep the package lean.
final
hashCode int
The hash code for this object.
no setterinherited
maxDuration Duration?
Optional cap on audio duration. Enforced only when durationResolver is also supplied — file_picker doesn't return duration metadata.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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