StarRatingTheme class
Theme data for customizing StarRating widget appearance.
This class defines the visual properties that can be applied to StarRating widgets, including colors for filled and unfilled stars, star sizing, and spacing between stars. These properties can be set at the theme level to provide consistent styling across the application.
- Inheritance
-
- Object
- ComponentThemeData
- StarRatingTheme
Constructors
- StarRatingTheme({Color? activeColor, Color? backgroundColor, double? starSize, double? starSpacing})
-
Creates a StarRatingTheme.
const
Properties
- activeColor → Color?
-
The color of the filled portion of the stars.
final
- backgroundColor → Color?
-
The color of the unfilled portion of the stars.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- starSize → double?
-
The size of each star.
final
- starSpacing → double?
-
The spacing between stars.
final
Methods
-
copyWith(
{ValueGetter< Color?> ? activeColor, ValueGetter<Color?> ? backgroundColor, ValueGetter<double?> ? starSize, ValueGetter<double?> ? starSpacing}) → StarRatingTheme - Returns a copy of this theme with the given fields replaced.
-
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.
override