BarrageWall constructor
BarrageWall({
- List<
Bullet> ? bullets, - BarrageWallController? controller,
- ValueNotifier<
BarrageValue> ? timelineNotifier, - int speed = 5,
- required Widget child,
- double? width,
- double? height,
- bool massiveMode = false,
- double maxBulletHeight = 16,
- bool debug = false,
- int safeBottomHeight = 0,
- int speedCorrectionInMilliseconds = 3000,
Implementation
BarrageWall({
List<Bullet>? bullets,
BarrageWallController? controller,
ValueNotifier<BarrageValue>? timelineNotifier,
this.speed = 5,
required this.child,
this.width,
this.height,
this.massiveMode = false,
this.maxBulletHeight = 16,
this.debug = false,
this.safeBottomHeight = 0,
this.speedCorrectionInMilliseconds = 3000,
}) : controller = controller ??
BarrageWallController.withBarrages(bullets,
timelineNotifier: timelineNotifier),
selfCreatedController = controller == null {
if (controller != null) {
this.controller.value = controller.value.size == 0
? BarrageWallValue.fromList(bullets ?? [])
: controller.value;
this.controller.timelineNotifier =
controller.timelineNotifier ?? timelineNotifier;
}
}