TermosSwitch constructor

const TermosSwitch({
  1. Key? key,
  2. required bool value,
  3. ValueChanged<bool>? onChanged,
  4. double blobRadius = 21.5,
  5. double edgeSharpness = 5,
  6. double glowIntensity = 0.5,
  7. double? dotSize,
  8. double? gridSpacing,
  9. double blobInset = 8,
  10. double onAlpha = 1,
  11. double offAlpha = 0.23,
  12. double idleAlpha = 0.05,
  13. double sweepWeight = 0,
  14. double blobWeight = 1,
  15. double trackWidth = 82,
  16. double trackHeight = 33.5,
  17. double? trackRadius,
  18. double borderWidth = 1,
  19. 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,
});