TermosSwitch constructor
const
TermosSwitch({
- Key? key,
- required bool value,
- ValueChanged<
bool> ? onChanged, - double blobRadius = 21.5,
- double edgeSharpness = 5,
- double glowIntensity = 0.5,
- double? dotSize,
- double? gridSpacing,
- double blobInset = 8,
- double onAlpha = 1,
- double offAlpha = 0.23,
- double idleAlpha = 0.05,
- double sweepWeight = 0,
- double blobWeight = 1,
- double trackWidth = 82,
- double trackHeight = 33.5,
- double? trackRadius,
- double borderWidth = 1,
- double glowStrokeWidth = 1,
Implementation
const TermosSwitch({
super.key,
required this.value,
this.onChanged,
this.blobRadius = 21.5,
this.edgeSharpness = 5,
this.glowIntensity = 0.5,
/// When null, uses [TermosThemeData.dotGrid.dotSize].
this.dotSize,
/// When null, uses [TermosThemeData.dotGrid.spacing].
this.gridSpacing,
this.blobInset = 8,
this.onAlpha = 1,
this.offAlpha = 0.23,
this.idleAlpha = 0.05,
this.sweepWeight = 0,
this.blobWeight = 1,
this.trackWidth = 82,
this.trackHeight = 33.5,
this.trackRadius,
this.borderWidth = 1,
this.glowStrokeWidth = 1,
});