RatingBarIndicator constructor Null safety

RatingBarIndicator(
  1. {required IndexedWidgetBuilder itemBuilder,
  2. TextDirection? textDirection,
  3. Color? unratedColor,
  4. Axis direction = Axis.horizontal,
  5. int itemCount = 5,
  6. EdgeInsets itemPadding = EdgeInsets.zero,
  7. double itemSize = 40.0,
  8. ScrollPhysics physics = const NeverScrollableScrollPhysics(),
  9. double rating = 0.0}
)

Implementation

RatingBarIndicator({
  required this.itemBuilder,
  this.textDirection,
  this.unratedColor,
  this.direction = Axis.horizontal,
  this.itemCount = 5,
  this.itemPadding = EdgeInsets.zero,
  this.itemSize = 40.0,
  this.physics = const NeverScrollableScrollPhysics(),
  this.rating = 0.0,
});