USignaturePad constructor

const USignaturePad({
  1. required dynamic onSave(
    1. FileData
    ),
  2. Key? key,
  3. dynamic onDraw(
    1. FileData
    )?,
  4. String? saveButtonText,
  5. String? clearButtonText,
  6. String? emptyMessage,
  7. USignatureController? controller,
  8. Color? backgroundColor,
  9. Color? strokeColor,
  10. List<Color>? penColors,
  11. double minWidth = 1.5,
  12. double maxWidth = 4.5,
  13. double height = 220,
  14. bool showToolbar = true,
  15. bool showColorPicker = true,
  16. bool showWidthSlider = false,
  17. bool showBaseline = true,
  18. double exportPixelRatio = 3,
  19. Color? exportBackground,
})

Implementation

const USignaturePad({
  required this.onSave,
  super.key,
  this.onDraw,
  this.saveButtonText,
  this.clearButtonText,
  this.emptyMessage,
  this.controller,
  this.backgroundColor,
  this.strokeColor,
  this.penColors,
  this.minWidth = 1.5,
  this.maxWidth = 4.5,
  this.height = 220,
  this.showToolbar = true,
  this.showColorPicker = true,
  this.showWidthSlider = false,
  this.showBaseline = true,
  this.exportPixelRatio = 3,
  this.exportBackground,
});