There is an inconsistency between the character count check and the statement "Should be at least 10 characters".
With the current implementation, a description with exactly 10 characters is not accepted.
I believe either of the following solutions could be considered:
Change textLength <= 10 to textLength < 10
Change Should be at least 10 characters. to something like Should be more than 10 characters. or Should be over 10 characters..
And I think any changes to the documentation are unnecessary, because the following link does not mention the character limit for screenshot descriptions.
https://dart.dev/tools/pub/pubspec#screenshots
There is an inconsistency between the character count check and the statement "Should be at least 10 characters". With the current implementation, a description with exactly 10 characters is not accepted.
https://github.com/dart-lang/pub-dev/blob/d8f809f5585d1c6f6bd14fb01b5f3caf1907b24c/pkg/pub_package_reader/lib/pub_package_reader.dart#L733-L736
I believe either of the following solutions could be considered:
textLength <= 10
totextLength < 10
Should be at least 10 characters.
to something likeShould be more than 10 characters.
orShould be over 10 characters.
.And I think any changes to the documentation are unnecessary, because the following link does not mention the character limit for screenshot descriptions. https://dart.dev/tools/pub/pubspec#screenshots
Thanks!