setDescription method

CommandDeclarationBuilder setDescription(
  1. String description, {
  2. Translation? translation,
})

Implementation

CommandDeclarationBuilder setDescription(String description,
    {Translation? translation}) {
  _description = description;
  if (translation != null) {
    _descriptionLocalizations =
        _helper.extractTranslations('description', translation);
  }
  return this;
}