BokehFx class
Constructors
- BokehFx({required Size size, required ParticleShapeType shape})
Properties
- center ↔ Offset
-
The center of the canvas.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- height ↔ double
-
The available canvas height for the FX.
getter/setter pairinherited
- numParticles ↔ int
-
The maximum number of particles.
getter/setter pairinherited
- palette ↔ Palette?
-
The colors used for painting.
getter/setter pairinherited
- particleMaxSize ↔ double
-
getter/setter pairinherited
- particleMinSize ↔ double
-
Size of particle
getter/setter pairinherited
-
particles
↔ List<
Particle?> -
All the FX's particles.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape ↔ ParticleShapeType
-
getter/setter pairinherited
- sizeMin ↔ double
-
The minimum value of width and height.
getter/setter pairinherited
- spawnArea ↔ Rect
-
The area from wich to spawn new particles.
getter/setter pairinherited
- vx ↔ double
-
Velocity of particle
getter/setter pairinherited
- vy ↔ double
-
getter/setter pairinherited
- width ↔ double
-
The available canvas width for the FX.
getter/setter pairinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
init(
) → void -
Initializes the particle effect by resetting all the particles and assigning a random color from the palette.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
resetParticle(
int i) → Particle -
Resets a particle's values.
inherited
-
setPalette(
Palette palette) → void -
Sets the palette used for coloring.
inherited
-
setParticleCount(
int count) → void -
inherited
-
setParticleSize(
double min, double max) → void -
inherited
-
setShape(
ParticleShapeType shape) → void -
inherited
-
setSize(
Size size) → void -
Sets the canvas size and updates dependent values.
inherited
-
setVelocity(
double vx, double vy) → void -
inherited
-
tick(
Duration duration) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited