FireworkModel.create constructor

FireworkModel.create(
  1. double width,
  2. double height,
  3. Random random,
  4. Color color,
  5. OutlinedBorder shape,
  6. bool fillShape,
  7. Offset pos,
  8. Offset velocity,
  9. Offset acceleration,
)

Implementation

factory FireworkModel.create(
  double width,
  double height,
  Random random,
  Color color,
  OutlinedBorder shape,
  bool fillShape,
  Offset pos,
  Offset velocity,
  Offset acceleration,
) {
  return FireworkModel(
    fillShape: fillShape,
    color: color,
    width: width,
    random: random,
    height: height,
    shape: shape,
    pos: pos,
    velocity: velocity,
    acceleration: acceleration,
  );
}