SignatureConfig constructor

const SignatureConfig({
  1. Color penColor = Colors.black,
  2. double penStrokeWidth = 2.0,
  3. double minStrokeWidth = 1.0,
  4. double maxStrokeWidth = 4.0,
  5. bool enablePressureSensitivity = false,
  6. bool enableTiltSensitivity = false,
  7. Color backgroundColor = Colors.white,
  8. bool showGrid = false,
  9. Color gridColor = const Color(0xFFE0E0E0),
  10. double gridSpacing = 20.0,
  11. bool enableSmoothing = true,
  12. double smoothingFactor = 0.3,
  13. bool enableAntiAliasing = true,
  14. List<Color>? penColors,
  15. bool enableMultiColor = false,
})

Implementation

const SignatureConfig({
  this.penColor = Colors.black,
  this.penStrokeWidth = 2.0,
  this.minStrokeWidth = 1.0,
  this.maxStrokeWidth = 4.0,
  this.enablePressureSensitivity = false,
  this.enableTiltSensitivity = false,
  this.backgroundColor = Colors.white,
  this.showGrid = false,
  this.gridColor = const Color(0xFFE0E0E0),
  this.gridSpacing = 20.0,
  this.enableSmoothing = true,
  this.smoothingFactor = 0.3,
  this.enableAntiAliasing = true,
  this.penColors,
  this.enableMultiColor = false,
});