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, List<ParticleModel> particles = const []})
FireworkModel.create(double width, double height, Random random, Color color, OutlinedBorder shape, bool fillShape, Offset pos, Offset velocity, Offset acceleration)
factory

Properties

acceleration Offset
getter/setter pair
color Color
final
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
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited