StreamSwitchStyle constructor
const
StreamSwitchStyle({
- WidgetStateProperty<
Color?> ? trackColor, - WidgetStateProperty<
Color?> ? thumbColor, - WidgetStateProperty<
Color?> ? trackOutlineColor, - WidgetStateProperty<
double?> ? trackOutlineWidth, - 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,
});