minimumRecordingDuration property

Duration get minimumRecordingDuration

The minimum recording duration limit. 录制视频的最短时长限制。

If the maximum duration is less than the minimum, use the maximum instead. 如果最大时长大于最小时长,则使用最大时长。

Implementation

Duration get minimumRecordingDuration {
  if (pickerConfig.maximumRecordingDuration != null &&
      pickerConfig.maximumRecordingDuration! <
          pickerConfig.minimumRecordingDuration) {
    return pickerConfig.maximumRecordingDuration!;
  }
  return pickerConfig.minimumRecordingDuration;
}