particle method

RestActionAble particle({
  1. required ParticleType particle,
  2. required Location location,
  3. Location? delta,
  4. double speed = 1,
  5. int count = 1,
  6. bool force = false,
})

Generates a Particle Widget

player.particle(particle: ParticleType.barrier, location: location).queue()

Implementation

RestActionAble particle({
  required ParticleType particle,
  required Location location,
  Location? delta,
  double speed = 1,
  int count = 1,
  bool force = false,
}) =>
    StraitWidget.builder.create(Particle(
      particle,
      location: location,
      delta: delta,
      speed: speed,
      count: count,
      force: force,
      player: this,
    ));