LiveBackgroundWidget constructor

const LiveBackgroundWidget({
  1. Key? key,
  2. LiveBackgroundController? controller,
  3. Palette? palette,
  4. int? particleCount,
  5. double? velocityX,
  6. double? velocityY,
  7. double? particleMinSize,
  8. double? particleMaxSize,
  9. double blurSigmaX = 2,
  10. double blurSigmaY = 0,
  11. bool clipBoundary = true,
  12. bool fixSize = false,
  13. ParticleShapeType shape = ParticleShapeType.circle,
})

All Parameters are initial values. If you want to change the value after first build you should use controller.

Implementation

const LiveBackgroundWidget({
  Key? key,
  this.controller,
  this.palette,
  this.particleCount,
  this.velocityX,
  this.velocityY,
  this.particleMinSize,
  this.particleMaxSize,
  this.blurSigmaX = 2,
  this.blurSigmaY = 0,
  this.clipBoundary = true,
  this.fixSize = false,
  this.shape = ParticleShapeType.circle,
}) : super(key: key);