Scoreboard.add constructor

Scoreboard.add(
  1. String name, {
  2. String type = 'dummy',
  3. TextComponent? display,
})

The Scoreboard.add constructor does exactly the same as Scoreboard but puts the result without checking in the current file.

Implementation

Scoreboard.add(this.name, {this.type = 'dummy', TextComponent? display})
    : subcommand = 'addHere' {
  if (display != null) type += ' ${display.toJson()!}';
  prefixName();
}