DecibelData constructor
Creates a new DecibelData instance.
decibel should be in the range -120 to 0 dB.
timestamp should be a Unix timestamp in seconds.
Example:
final data = DecibelData(
decibel: -45.0,
timestamp: DateTime.now().millisecondsSinceEpoch / 1000.0,
);
Implementation
const DecibelData({
required this.decibel,
required this.timestamp,
});