AudioFile class

Represents an audio file on the device

Inheritance

Constructors

AudioFile({required String id, required String name, required int size, required String path, required String uri, required int dateAdded, required String mimeType, required int duration, required String artist, required String album})
AudioFile.fromMap(Map<String, dynamic> map)
Create an AudioFile from a map
factory

Properties

album String
Album of the audio file
final
artist String
Artist of the audio file
final
dateAdded int
Date when the media file was added to the device (Unix timestamp)
finalinherited
duration int
Duration of the media file in milliseconds
finalinherited
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for the media file
finalinherited
mimeType String
MIME type of the media file
finalinherited
name String
Display name of the media file
finalinherited
path String
Path to the media file on the device
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
Size of the media file in bytes
finalinherited
uri String
URI for accessing the media file
finalinherited

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