AudioRecording class

Represents a recorded audio file with metadata

Constructors

AudioRecording.new({required String id, required String filePath, required String title, required int sampleRate, required int channels, required int bitDepth, required int durationMs, required int timestamp})
Creates a new AudioRecording instance
AudioRecording.fromJson(Map<String, dynamic> json)
Creates an AudioRecording from a JSON map
factory

Properties

bitDepth int
Bit depth
final
channels int
Number of audio channels
final
durationMs int
Duration in milliseconds
final
filePath String
Path to the recording file
final
formattedDate String
Returns a formatted date string
no setter
formattedDuration String
Returns a formatted duration string (mm:ss)
no setter
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for the recording
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleRate int
Sample rate in Hz
final
timestamp int
Timestamp when the recording was created (milliseconds since epoch)
final
title String
Title of the recording
final

Methods

copyWith({String? id, String? filePath, String? title, int? sampleRate, int? channels, int? bitDepth, int? durationMs, int? timestamp}) AudioRecording
Creates a copy of this AudioRecording with the given fields replaced
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the AudioRecording to a JSON map
toString() String
A string representation of this object.
inherited

Operators

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