Particle.block constructor

Particle.block(
  1. Block block, {
  2. bool falling = false,
  3. bool marker = false,
  4. Location? location,
  5. Location? delta,
  6. double speed = 0,
  7. int count = 1,
  8. bool force = false,
  9. Entity? player,
})

For the Block particle(shows block break) there is a named constructor

Implementation

Particle.block(
  Block block, {
  bool falling = false,
  bool marker = false,
  this.location,
  this.delta,
  this.speed = 0,
  this.count = 1,
  this.force = false,
  this.player,
})  : particle = falling
          ? Particles.falling_dust
          : (marker ? Particles.block_marker : Particles.block),
      texture = block.toString();