AudioPickerOptions class
Picker behaviour for SingleAudioPicker. Distinct from the visual style.
Constructors
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_prodoes 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_pickerdoesn'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