AudioModel class
Audio model containing information about audio files
Constructors
- AudioModel({required int id, required String title, required String artist, required String album, required String genre, required int duration, required String data, required int size, required int dateAdded, required int dateModified, required int track, required int year, required String albumArtist, required String composer, required String fileExtension, required String displayName, required String mimeType, String? artwork, required bool isMusic, required bool isRingtone, required bool isAlarm, required bool isNotification, required bool isPodcast, required bool isAudiobook})
-
const
-
AudioModel.fromMap(Map<
String, dynamic> map) -
Create AudioModel from Map
factory
Properties
- album → String
-
Album name
final
- albumArtist → String
-
Album artist
final
- artist → String
-
Artist name
final
- artwork → String?
-
Artwork/cover image path
final
- composer → String
-
Composer
final
- data → String
-
File path
final
- dateAdded → int
-
Date added timestamp
final
- dateModified → int
-
Date modified timestamp
final
- displayName → String
-
Display name without extension
final
- duration → int
-
Duration in milliseconds
final
- fileExtension → String
-
File extension
final
- genre → String
-
Genre of the audio
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → int
-
Unique identifier for the audio file
final
- isAlarm → bool
-
Whether the file is an alarm
final
- isAudiobook → bool
-
Whether the file is an audiobook
final
- isMusic → bool
-
Whether the file is music
final
- isNotification → bool
-
Whether the file is a notification sound
final
- isPodcast → bool
-
Whether the file is a podcast
final
- isRingtone → bool
-
Whether the file is a ringtone
final
- mimeType → String
-
MIME type
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int
-
File size in bytes
final
- title → String
-
Title of the audio file
final
- track → int
-
Track number
final
- year → int
-
Year of release
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Convert AudioModel to Map
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override