ToggleSwitchThemeData constructor

const ToggleSwitchThemeData({
  1. EdgeInsetsGeometry? padding,
  2. EdgeInsetsGeometry? margin,
  3. Duration? animationDuration,
  4. Curve? animationCurve,
  5. ButtonState<Decoration?>? checkedKnobDecoration,
  6. ButtonState<Decoration?>? uncheckedKnobDecoration,
  7. ButtonState<Decoration?>? checkedDecoration,
  8. ButtonState<Decoration?>? uncheckedDecoration,
  9. 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,
});