Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions lib/src/core/audio_waveform.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,6 @@ abstract class AudioWaveform extends StatefulWidget {
),
'Both maxDuration and elapsedDuration must be provided.',
),
assert(
maxDuration == null ? true : maxDuration.inMilliseconds > 0,
'maxDuration must be greater than 0',
),
assert(
elapsedDuration == null ? true : elapsedDuration.inMilliseconds >= 0,
'maxDuration must be greater than 0',
),
assert(
elapsedDuration == null || maxDuration == null
? true
: elapsedDuration.inMilliseconds <= maxDuration.inMilliseconds,
'elapsedDuration must be less than or equal to maxDuration',
),
waveformAlignment = absolute
? invert
? WaveformAlignment.top
Expand Down