SwitchTheme constructor

const SwitchTheme({
  1. Color? activeColor,
  2. Color? inactiveColor,
  3. Color? activeThumbColor,
  4. Color? inactiveThumbColor,
  5. double? gap,
  6. BorderRadiusGeometry? borderRadius,
})

Creates a SwitchTheme.

All parameters are optional and will use framework defaults when null. The theme can be applied to individual switches or globally through the component theme system.

Implementation

const SwitchTheme({
  this.activeColor,
  this.inactiveColor,
  this.activeThumbColor,
  this.inactiveThumbColor,
  this.gap,
  this.borderRadius,
});