DuoRatingDialog constructor

const DuoRatingDialog({
  1. Key? key,
  2. required Text title,
  3. Text messageOne = const Text('Message One'),
  4. Text messageTwo = const Text('Message Two'),
  5. Color starColor = Colors.amber,
  6. double starSize = 40,
  7. bool force = false,
  8. bool showCloseButton = true,
  9. double initialRatingOne = 0.0,
  10. double initialRatingTwo = 0.0,
  11. Icon ratingicon = const Icon(Icons.flutter_dash, size: 70),
  12. required String submitButtonText,
  13. required TextStyle submitButtonTextStyle,
  14. required dynamic onSubmitted(
    1. RatingDialogResponse
    ),
  15. Function? onCancelled,
})

Implementation

const DuoRatingDialog(
    {Key? key,
    required this.title,
    this.messageOne = const Text('Message One'),
    this.messageTwo = const Text('Message Two'),
    this.starColor = Colors.amber,
    this.starSize = 40,
    this.force = false,
    this.showCloseButton = true,
    this.initialRatingOne = 0.0,
    this.initialRatingTwo = 0.0,
    this.ratingicon = const Icon(
      Icons.flutter_dash,
      size: 70,
    ),
    required this.submitButtonText,
    required this.submitButtonTextStyle,
    required this.onSubmitted,
    this.onCancelled})
    : super(key: key);