title: Maximum Duration of picked video using image picker plugin in Flutter
body: <p>I'm using image picker plugin to pick videos from gallery in my flutter app. I want to set the maximum duration of the picked video to 30 seconds. The below code doesn't work even after setting the max duration. Is there any way to display an error or automatically trim the first 30secs if users pick a bigger video.</p>
  <pre><code>pickVideo(ImageSource src) async {
  Navigator.pop(context);
  final video = await ImagePicker().getVideo(
    source: src,
    maxDuration: Duration(seconds: 30),
  );
  </code></pre>