WheelSpinnerThemeData class

The theme for the wheel spinner You can use the constructor WheelSpinnerThemeData to create your own theme, or use WheelSpinnerThemeData.light() or WheelSpinnerThemeData.dark() and then use copyWith to override only specifics.

Constructors

WheelSpinnerThemeData({BoxDecoration? boxDecoration, Border? border, BorderRadiusGeometry? borderRadius = defaultBorderRadius, Color? color, Gradient? gradient, int dividerCount = 10, Color? dividerColor})
Create a new theme for the wheel spinner
WheelSpinnerThemeData.dark()
A default dark theme
WheelSpinnerThemeData.light()
A default light theme

Properties

border Border?
Override box border for the control's boxDecoration. If boxDecoration is specified, this is ignored.
final
borderRadius BorderRadiusGeometry?
Override border radius for the control's boxDecoration. If boxDecoration is specified, this is ignored.
final
boxDecoration BoxDecoration?
Override box decoration for the control
final
color Color?
Override background color for the control's boxDecoration. If boxDecoration or gradient is specified, this is ignored.
final
dividerColor Color?
Color of the lines dividing the control.
final
dividerCount int
Amount of lines dividing the control. Defaults to 10.
final
gradient Gradient?
Override background gradient for the control's boxDecoration. If boxDecoration is specified, this is ignored.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({BoxDecoration? boxDecoration, Border? border, BorderRadiusGeometry? borderRadius, Color? color, Gradient? gradient, int? dividerCount, Color? dividerColor}) WheelSpinnerThemeData
Create a new theme based on this one, but with the given properties overridden. For each property that is null, the original value is used.
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

Constants

defaultBorderRadius → const BorderRadius
default border radius for both light+dark themes
defaultShadowOffset → const double
default shadow offset for both light+dark themes