shouldAutoAccept method

bool shouldAutoAccept(
  1. Duration duration
)

Whether strict and the constraints minLength and maxLength indicate that the video with the given duration should be automatically accepted.

Implementation

bool shouldAutoAccept(final Duration duration) =>
    strict && duration <= minLength;