ParticlePathPreset class
Describes a reusable particle shape for atlas and shader rendering.
- Annotations
Constructors
- ParticlePathPreset({required Path path, double? areaFactor})
-
const
- ParticlePathPreset.custom(Path path, {double? areaFactor})
-
Creates a preset from a custom Path.
factory
Properties
- areaFactor → double?
-
Optional area factor used to normalize density between shapes.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- path → Path
-
Path defining the particle shape in local coordinates.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- circle → ParticlePathPreset
-
Circular particle shape.
final
- snowflake → ParticlePathPreset
-
Six-point snowflake-like particle shape.
final
- star → ParticlePathPreset
-
Five-point star particle shape.
final