SwitchThemeData constructor Null safety

const SwitchThemeData(
  1. {MaterialStateProperty<Color?>? thumbColor,
  2. MaterialStateProperty<Color?>? trackColor,
  3. MaterialTapTargetSize? materialTapTargetSize,
  4. MaterialStateProperty<MouseCursor?>? mouseCursor,
  5. MaterialStateProperty<Color?>? overlayColor,
  6. double? splashRadius}
)

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

Implementation

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