DuoRatingDialog class

Inheritance

Constructors

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

Properties

force bool
Disables the cancel button and forces the user to leave a rating
final
hashCode int
The hash code for this object.
no setterinherited
initialRatingOne double
The initial first rating of the rating bar
final
initialRatingTwo double
The initial second rating of the rating bar
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
messageOne Text
The dialog's first message/description text
final
messageTwo Text
The dialog's second message/description text
final
onCancelled Function?
called when user cancels/closes the dialog
final
onSubmitted → dynamic Function(RatingDialogResponse)
Returns a RatingDialogResponse with user's rating and comment values
final
ratingicon Icon
To add any Specific Logo/Icon
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showCloseButton bool
Show or hide the close button
final
starColor Color
The rating bar (star icon & glow) color
final
starSize double
The size of the star
final
submitButtonText String
The submit button's label/text
final
submitButtonTextStyle TextStyle
The submit button's label/text
final
title Text
The dialog's title
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<DuoRatingDialog>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited