hasEnoughLengthDescription function

bool hasEnoughLengthDescription(
  1. String description, {
  2. bool privatePackage = false,
})

Check the description is has enough charather

Set privatePackage to true if not going to publish

Implementation

bool hasEnoughLengthDescription(String description,
        {bool privatePackage = false}) =>
    privatePackage
        ? true
        : (description.length >= 60 && description.length <= 180);