RatingDialog constructor Null safety

const RatingDialog(
  1. {required Text title,
  2. Text? message,
  3. Widget? image,
  4. required String submitButtonText,
  5. TextStyle submitButtonTextStyle = const TextStyle(fontWeight: FontWeight.bold, fontSize: 17),
  6. required dynamic onSubmitted(
    1. RatingDialogResponse
    ),
  7. Color starColor = Colors.amber,
  8. double starSize = 40.0,
  9. Function? onCancelled,
  10. bool showCloseButton = true,
  11. bool force = false,
  12. double initialRating = 0,
  13. bool enableComment = true,
  14. String commentHint = 'Tell us your comments'}
)

Implementation

const RatingDialog({
  required this.title,
  this.message,
  this.image,
  required this.submitButtonText,
  this.submitButtonTextStyle = const TextStyle(
    fontWeight: FontWeight.bold,
    fontSize: 17,
  ),
  required this.onSubmitted,
  this.starColor = Colors.amber,
  this.starSize = 40.0,
  this.onCancelled,
  this.showCloseButton = true,
  this.force = false,
  this.initialRating = 0,
  this.enableComment = true,
  this.commentHint = 'Tell us your comments',
});