FireworkModel class
Constructors
-
FireworkModel({required bool fillShape, Offset pos = Offset.zero, required Offset velocity, Offset acceleration = Offset.zero, required Random random, required double width, required double height, required Color color, required OutlinedBorder shape, required List<
ParticleModel> particles})
Properties
- acceleration ↔ Offset
-
getter/setter pair
- color ↔ Color
-
getter/setter pair
- exploded ↔ bool
-
getter/setter pair
- fillShape → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
final
-
particles
↔ List<
ParticleModel> -
getter/setter pair
- pos ↔ Offset
-
getter/setter pair
- random → Random
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → OutlinedBorder
-
final
- velocity ↔ Offset
-
getter/setter pair
- width → double
-
final
Methods
-
draw(
Canvas canvas, Size size, Paint paint) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
Offset newPos, Offset newVelocity, Color newColor, Offset gravity) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited