RotaryDialThemeData constructor
RotaryDialThemeData({})
Creates a RotaryDialThemeData object.
If a property is not specified, a default value will be used instead.
rotaryDialColor
- The background color of the rotary dial.spinnerColor
- The color of the spinner that appears when the rotary dial is tapped.dialColor
- The color of the dial that contains the numbers and the point.numberColor
- The color of the numbers on the dial.margin
- The margin around the rotary dial.dialBorderRadius
- The radius of the rotary dial's border.
Implementation
factory RotaryDialThemeData({
// Assign default values to the properties that were not specified.
Color? rotaryDialColor,
Color? spinnerColor,
Color? dialColor,
Color? numberColor,
EdgeInsets? margin,
double? dialBorderRadius,
}) {
rotaryDialColor ??= RotaryColors.mainColorDark;
spinnerColor ??= RotaryColors.white;
dialColor ??= RotaryColors.mainColor;
numberColor ??= RotaryColors.white;
margin ??= const EdgeInsets.only(
left: RotaryDimensions.large,
right: RotaryDimensions.large,
);
dialBorderRadius ??= RotaryDimensions.dialNumberRadius;
// Return a new instance of this class with the specified values.
return RotaryDialThemeData._defaultTheme(
rotaryDialColor: rotaryDialColor,
spinnerColor: spinnerColor,
dialColor: dialColor,
numberColor: numberColor,
margin: margin,
dialBorderRadius: dialBorderRadius,
);
}