Preset enum
Built-in animation presets — curated factory layouts (“nova”, “cascade”, “flare”, “crossfire”).
Pass to ConfettiEngine.celebrate or ConfettiWidget.preset.
Values
- nova → const Preset
-
Center of the screen — omnidirectional burst with star-heavy shapes (same intent as the demo's nova button). Fires HapticFeedback.heavyImpact on play.
- cascade → const Preset
-
Top center — wide downward cone, high particle count and fall speed (cascade: top-center downward cone,
blastDirectionπ/2, strong gravity). Fires HapticFeedback.heavyImpact on play. - flare → const Preset
-
Near the left edge — narrow cone aimed right, fewer / smaller pieces (flare: sparse left-edge directional stream). Fires HapticFeedback.mediumImpact on play.
- crossfire → const Preset
-
Near the right edge — narrow cone aimed left (crossfire: directional stream across the screen). Fires HapticFeedback.mediumImpact on play.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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