StreamSwitchStyle constructor

const StreamSwitchStyle({
  1. WidgetStateProperty<Color?>? trackColor,
  2. WidgetStateProperty<Color?>? thumbColor,
  3. WidgetStateProperty<Color?>? trackOutlineColor,
  4. WidgetStateProperty<double?>? trackOutlineWidth,
  5. WidgetStateProperty<Color?>? overlayColor,
})

Creates switch style properties.

Color properties are WidgetStateProperty-based for full state-level control. For a simpler API that accepts plain values and builds state properties internally, use StreamSwitchStyle.from.

Implementation

const StreamSwitchStyle({
  this.trackColor,
  this.thumbColor,
  this.trackOutlineColor,
  this.trackOutlineWidth,
  this.overlayColor,
});