ToggleSwitchThemeData constructor
const
ToggleSwitchThemeData({
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- Duration? animationDuration,
- Curve? animationCurve,
- ButtonState<
Decoration?> ? checkedKnobDecoration, - ButtonState<
Decoration?> ? uncheckedKnobDecoration, - ButtonState<
Decoration?> ? checkedDecoration, - ButtonState<
Decoration?> ? uncheckedDecoration, - ButtonState<
Color?> ? foregroundColor,
Creates a theme that can be used for ToggleSwitchTheme
Implementation
const ToggleSwitchThemeData({
this.padding,
this.margin,
this.animationDuration,
this.animationCurve,
this.checkedKnobDecoration,
this.uncheckedKnobDecoration,
this.checkedDecoration,
this.uncheckedDecoration,
this.foregroundColor,
});