allowVideos method

bool allowVideos()

Returns true if any of the allowedExtensions is for the video

Implementation

bool allowVideos() {
  if (allowedExtensions.isEmpty) {
    return true;
  } else {
    return UniversalPlatform.isAndroid
        ? allowedExtensions.intersection(<String>{'mp4'}).isNotEmpty
        : allowedExtensions.intersection(<String>{'mov'}).isNotEmpty;
  }
}