allowImages method

bool allowImages()

Returns true if any of the allowedExtensions is for the image

Implementation

bool allowImages() {
  return allowedExtensions.isEmpty || allowedExtensions.intersection(<String>{'jpg', 'jpeg', 'png'}).isNotEmpty;
}