VxRating class

VxRating widget to show ratings to the user and the user can change it too. Fully customizable

Inheritance
Available Extensions

Constructors

VxRating({Key? key, double maxRating = 10.0, int count = 5, double value = 10.0, double size = 20, dynamic normalImage, dynamic selectImage, double padding = 0, Color normalColor = Colors.grey, Color selectionColor = Colors.red, bool isSelectable = true, bool stepInt = false, required ValueChanged<String> onRatingUpdate})
const

Properties

count int
Stars count
final
hashCode int
The hash code for this object.
no setterinherited
isSelectable bool
If the rating is selectable or not
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxRating double
The maximum rating which can be given
final
normalColor Color
Unselected color of the icon
final
normalImage → dynamic
To provide a custom image of star/rating (unselected)
final
onRatingUpdate ValueChanged<String>
Use onRatingUpdate to get the selected value.
final
padding double
To give space between the stars/icons
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectImage → dynamic
To provide a custom image of star/rating (selected)
final
selectionColor Color
Selected color of the icon
final
size double
Size of the icon/image
final
stepInt bool
true if Half star not allowed
final
value double
Currently selected value
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() VxRatingState
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}) 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