SwitchThemeData constructor

const SwitchThemeData({
  1. WidgetStateProperty<Color?>? thumbColor,
  2. WidgetStateProperty<Color?>? trackColor,
  3. WidgetStateProperty<Color?>? trackOutlineColor,
  4. WidgetStateProperty<double?>? trackOutlineWidth,
  5. MaterialTapTargetSize? materialTapTargetSize,
  6. WidgetStateProperty<MouseCursor?>? mouseCursor,
  7. WidgetStateProperty<Color?>? overlayColor,
  8. double? splashRadius,
  9. WidgetStateProperty<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,
});