setName method

CommandDeclarationBuilder setName(
  1. String name, {
  2. Translation? translation,
})

Implementation

CommandDeclarationBuilder setName(String name, {Translation? translation}) {
  this.name = name;
  if (translation != null) {
    _nameLocalizations = _helper.extractTranslations('name', translation);
  }

  return this;
}