RatingWidget class

Configuration for widget used as a rate widget.

Constructors

RatingWidget.new({Color selectedColor = Colors.yellow, Color? unSelectedColor, required Widget child})
const

Properties

child Widget
Specifies the custom widget to be used as the rating indicator. The child can be of any size, shape, or type and does not have to be similar to other indicators. The selectedColor and unSelectedColor will be drawn on the child.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedColor Color
The selectedColor property specifies the color that will be drawn on child to indicate the current selection. It defaults to Colors.yellow.
final
unSelectedColor Color?
The color used for the unselected portion of the rating, which will be drawn below selectedColor. By default, this is set to null, meaning the background color filter layer will not be drawn. If you wish to specify a color, simply set this property to the desired color.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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