LinearProgressBar constructor Null safety

LinearProgressBar(
  1. {Key? key,
  2. Size size = const Size(400, 200),
  3. EdgeInsets margin = const EdgeInsets.only(top: 0, left: 0),
  4. double value = 0,
  5. double maxValue = 100,
  6. Color progressColor = Colors.green,
  7. Color backgroundColor = Colors.transparent}
)

Implementation

LinearProgressBar({
  Key? key,
  this.size = const Size(400, 200),
  this.margin = const EdgeInsets.only(top: 0, left: 0),
  this.value = 0,
  this.maxValue = 100,
  this.progressColor = Colors.green,
  this.backgroundColor = Colors.transparent,
}) : super(key: key);