AudioFile class

AudioFile class represent the MP3 header of the file. It contains useful and tecnhical informations about the file.

It is a read-only class. You can't actually edit this infos in the MP3 file.

Constructors

AudioFile({int? length, int? bitRate, String? channels, String? encodingType, String? format, int? sampleRate, bool? isVariableBitRate})
Default constructor
AudioFile.fromMap(Map map)
Create an AudioFile object from a Map of the infos.

Properties

bitRate int?
Bitrate of the file
getter/setter pair
channels String?
The channel mode (such as Stereo or Mono)
getter/setter pair
encodingType String?
The audio file type (such as mp3)
getter/setter pair
format String?
The audio file format (such as MPEG-1 Layer 3)
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isVariableBitRate bool?
If the bitrate is variable
getter/setter pair
length int?
Track length in seconds
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleRate int?
The sampling rate
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Get a Map of the infos from an AudioFile object.
toString() String
A string representation of this object.
inherited

Operators

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