diff --git a/lib/validators.dart b/lib/validators.dart index fb8b286..3920219 100644 --- a/lib/validators.dart +++ b/lib/validators.dart @@ -4,7 +4,7 @@ const DEFAULT_THUMB_QUALITY = 50; const DEFAULT_IMAGE_TYPE = ThumbFormat.JPEG; int validateQuality(int choice) { - if (choice < 10 || choice > 100 || choice == null) + if (choice == null || choice < 10 || choice > 100) return DEFAULT_THUMB_QUALITY; return choice; }