SwitchThemeData constructor

const SwitchThemeData({
  1. MaterialStateProperty<Color?>? thumbColor,
  2. MaterialStateProperty<Color?>? trackColor,
  3. MaterialStateProperty<Color?>? trackOutlineColor,
  4. MaterialStateProperty<double?>? trackOutlineWidth,
  5. MaterialTapTargetSize? materialTapTargetSize,
  6. MaterialStateProperty<MouseCursor?>? mouseCursor,
  7. MaterialStateProperty<Color?>? overlayColor,
  8. double? splashRadius,
  9. MaterialStateProperty<Icon?>? thumbIcon,
  10. EdgeInsetsGeometry? padding,
})

Creates a theme that can be used for ThemeData.switchTheme.

Implementation

const SwitchThemeData({
  this.thumbColor,
  this.trackColor,
  this.trackOutlineColor,
  this.trackOutlineWidth,
  this.materialTapTargetSize,
  this.mouseCursor,
  this.overlayColor,
  this.splashRadius,
  this.thumbIcon,
  this.padding,
});