Scoreboard.trigger constructor

Scoreboard.trigger(
  1. String name, {
  2. TextComponent? display,
  3. bool addIntoLoad = true,
  4. bool removeOld = false,
})

The Scoreboard.trigger constructor adds a trigger objective

Implementation

factory Scoreboard.trigger(
  String name, {
  TextComponent? display,
  bool addIntoLoad = true,
  bool removeOld = false,
}) =>
    Scoreboard(
      name,
      type: 'trigger',
      display: display,
      addIntoLoad: addIntoLoad,
    );