title: 'value >= min && value <= max': is not true - flutter
body: <p>my music player is playing the first file totally fine, but when switching to the next song, it shows this error:</p>
  
  <blockquote>
    <p>'package:flutter/src/material/slider.dart': Failed assertion: line 132 pos 15: 'value >= min &amp;&amp; value &lt;= max': is not true.</p>
  </blockquote>
  
  <p>the values I'm sending to slider are not going to be negative or even null,
  I'm sending values this way:</p>
  
  <pre><code>          Slider(
                    value: _duration != null
                        ? _duration &gt; defdur
                            ? _position?.inMilliseconds?.toDouble() ?? 0.0
                            : 0.0
                        : 0.0,
                    onChanged: (double value) {
                      return audioPlayer.seek((value / 1000).roundToDouble());
                    },
                    min: 0.0,
                    max: _duration != null
                        ? _duration &gt; defdur
                            ? _duration.inMilliseconds.toDouble()
                            : 0.0
                        : 0.0),
  </code></pre>
  
  <p>the defdur is default duration i made like this: </p>
  
  <pre><code>var defdur = Duration(milliseconds: 0);
  </code></pre>
  
  <p>so basically i have two inline if statements, for checking if value is null or not bigger than 1 milliseconds, return 0
  and still problem occurs!</p>